httplib\urllib attributes problem

Bobbie lorenb2 at bezeqint.net
Sun Jul 20 15:28:54 EDT 2003


hello ppl,

While trying to build a web client I've encountered problems using both 
httplib and urllib2.  

The problem with httplib is that the "Accept-Encoding: Identity" HTTP header is
always sent by the library with no regard to my headers configuration.  in case
I setup an "Accept-Encoding" header of my own it just sends them both...

The problem with urllib2 is that a "User-agent: Python-urllib/2.0a1" is, again, sent
by default. in case I setup a "User-Agent" attribute of my own it just, again, sends
them both. Note the lower-case 'a' letter in the former user-agent
automatically sent by the library.  I can't even overrun it because of that.

I'll be happy for any kind of help, suggestion,...

thanks

Bob.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030720/fd34c949/attachment.html>


More information about the Python-list mailing list