[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2014-11-20 Thread Laurento Frittella

Laurento Frittella added the comment:

Even if forcing the HTTP/1.0 workaround works it can end up in weird issues, 
especially if used in something more than a small script, like the one I tried 
to describe in this issue report[1] for the requests python library.

[1] https://github.com/kennethreitz/requests/issues/2341

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14044
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2014-01-15 Thread Laurento Frittella

Laurento Frittella added the comment:

I had the same problem using urllib2 and the following trick worked for me

import httplib
httplib.HTTPConnection._http_vsn = 10
httplib.HTTPConnection._http_vsn_str = 'HTTP/1.0'

Source: http://stackoverflow.com/a/20645845

--
nosy: +laurento.frittella

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14044
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com