Re: urllib2.open always send 'Accept-Encoding: gzip, deflate' under Windows

2009-02-03 Thread Yuan HOng
Hi, I got the reason. It has nothing to do with Python and its libraries. I have Symantec Client Security installed on the test machine, and it is modifying the content encoding header for outgoing http request, which is a strange thing. Disable the firewall and the problem goes away. -- Hong Y

urllib2.open always send 'Accept-Encoding: gzip, deflate' under Windows

2009-02-03 Thread Yuan HOng
Hi, I wish to send a request without 'Accept-Encoding: gzip, deflate' in the request header. Under Linux, this is not a problem, I got 'Accept-Encoding: identity' by default. However, under Windows (XP SP3 with Python 2.5), no matter what I try, I always got 'Accept-Encoding: gzip, deflate' in th