[issue2275] urllib2 header capitalization

Rui Carmo report at bugs.python.org
Sat Jan 15 18:11:48 CET 2011


Rui Carmo <rcarmo at gmail.com> added the comment:

I'd like to add that when supplying custom headers for things like UPNP (which uses SOAPACTION as a header to talk to frequently very limited servers), the library shouldn't mangle the headers in any way whatsoever and send them verbatim. 

(I consider that mangling to be a bug, and not a new feature. HTTP headers may be case-insensitve according to standards, but embedded implementations require us to have a degree of control over the headers, and failing to preserve header case is a bug.)

Right now I've had to replace httplib and urllib2 with my own custom code because the SOAPACTION header is capitalized and sent to the server as "Soapaction", which breaks the Intel embedded UPNP daemon.

----------
nosy: +Rui.Carmo
type: feature request -> behavior
versions: +Python 2.7 -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2275>
_______________________________________


More information about the Python-bugs-list mailing list