[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2014-09-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2013-01-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > On Tue, Jan 1, 2013 at 5:41 AM, Antoine Pitrou wrote: > > Another possibility would be to allow passing None in values of the > `headers` dict, in which case the given header wouldn't be send at > all. > > I agree that your solution is more scaling-friendly th

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2013-01-01 Thread Bryan Bishop
Bryan Bishop added the comment: On Tue, Jan 1, 2013 at 5:41 AM, Antoine Pitrou wrote: > Another possibility would be to allow passing None in values of the `headers` > dict, in which case the given header wouldn't be send at all. I agree that your solution is more scaling-friendly than the patc

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2013-01-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure this is a desirable feature in the stdlib, but regardless, your solution isn't very scalable: a new argument will have to be added each time someone wants to avoid sending a given header. Another possibility would be to allow passing None in value

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2012-12-31 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 2.7, Python 3.1, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16830] Add skip_host and skip_accept_encoding to httplib/http.client

2012-12-31 Thread Bryan Bishop
New submission from Bryan Bishop: 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". Iss