[issue12849] Cannot override 'connection: close' in urllib2 headers

2020-03-09 Thread henrik242
henrik242 added the comment: Correction: My problem in Issue 39875 was not related to Connection: Close, but with weird POST handling in Solr. -- ___ Python tracker ___ _

[issue12849] Cannot override 'connection: close' in urllib2 headers

2020-03-06 Thread henrik242
henrik242 added the comment: That mandatory "Connection: close" makes it impossible to POST a data request to Solr, as described in https://bugs.python.org/issue39875 It would be very helpful if it could be made optional. -- nosy: +henrik242 versions: +Python 3.7 ___

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-09-08 Thread Martin Panter
Martin Panter added the comment: Just closed Issue 25037 about a server that omits the chunk length headers when “Connection: closed” is used. I wonder if it would be such a bad idea to just remove the “Connection: closed” flag. It was added in 2004 in revision 5e7455fb8db6, but I do not agree

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-05-22 Thread Martin Panter
Martin Panter added the comment: So far the only reasons that have been given to override this header (mine and the one in Issue 15943) seem to be to work around buggy servers. It is already documented that HTTP 1.1 and “Connection: close” are used, so if this issue is only about working aroun

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-04-01 Thread xiaobing jiang
Changes by xiaobing jiang : -- nosy: +s7v7nisla...@gmail.com ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue12849] Cannot override 'connection: close' in urllib2 headers

2014-06-19 Thread Demian Brecht
Demian Brecht added the comment: The problem here as far as I can tell is that the underlying file object (addinfourl) blocks while waiting for a full response from the server. As detailed in section 8.1 of RFC 2616, requests and responses can be pipelined, meaning requests can be sent while w

[issue12849] Cannot override 'connection: close' in urllib2 headers

2014-02-16 Thread Martin Panter
Martin Panter added the comment: I suggest using setdefault() in urllib.request.AbstractHTTPHandler.do_open(): headers.setdefault("Connection", "close") I am trying to work around a server that truncates its response when this header is sent, and this change would allow me to specify head

[issue12849] Cannot override 'connection: close' in urllib2 headers

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

[issue12849] Cannot override 'connection: close' in urllib2 headers

2012-09-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12849] Cannot override 'connection: close' in urllib2 headers

2012-09-14 Thread R. David Murray
Changes by R. David Murray : -- title: urllib2 headers issue -> Cannot override 'connection: close' in urllib2 headers ___ Python tracker ___ ___