This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kanzure
Recipients kanzure
Date 2012-12-31.23:57:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356998273.75.0.911756727263.issue16830@psf.upfronthosting.co.za>
In-reply-to
Content
Sometimes I am using httplib/http.client and the server is not exactly conforming to HTTP specs. I need to be able to specify the exact headers that are sent to the server. By default, httplib/http.client injects headers like "Host" and "Accept-Encoding".

Issue #831747 added skip_accept_encoding to httplib's putrequest method, but not on the request method. This current patch exposes these two toggles on the request method. This way, headers can be controlled without manually calling the connect/send/endheaders methods.

As a result, urllib/urllib3 can call urlopen and pass in these attributes to more directly control the headers sent to the remote server.
History
Date User Action Args
2012-12-31 23:57:54kanzuresetrecipients: + kanzure
2012-12-31 23:57:53kanzuresetmessageid: <1356998273.75.0.911756727263.issue16830@psf.upfronthosting.co.za>
2012-12-31 23:57:53kanzurelinkissue16830 messages
2012-12-31 23:57:53kanzurecreate