tags:

views:

474

answers:

2

(Edited to note: exact duplicate of 989739)

Could you give any suggestions or online sourses as to the matter of writing one's own client proxy-server? In particular, this proxy must be able to make one thing: replace the HTTP-headers sent by browsers with my own ones.

+1  A: 

Have a look at Tiny HTTP Proxy (1) and of course the related docs (2). It's basically running a server and handling requests.

(1) http://www.okisoft.co.jp/esc/python/proxy/ (2) http://docs.python.org/library/basehttpserver.html

Armandas
+1  A: 

http://twistedmatrix.com/

Great library for any networking needs.

lyrae