[issue1205] urllib fail to read URL contents, urllib2 crash Python

2008-12-02 Thread John J Lee
John J Lee <[EMAIL PROTECTED]> added the comment: This is fixed in trunk r61034 by issue #900744 . Please use that issue for any discussion re whether this should be fixed in 2.5. -- nosy: +jjlee ___ Python tracker <[EMAIL PROTECTED]>

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2008-01-02 Thread Guido van Rossum
Guido van Rossum added the comment: I'm just following the last post's suggestion "Should we close this then?" My message (somebody "should" submit a patch) was sarcastic --- it was in reference to the comment that Python "should" be more practical. Since no patch was applied, I don't know why

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2008-01-02 Thread Francesco Cosoleto
Francesco Cosoleto added the comment: Sorry, but I don't understand reason to close this issue with resolution "wont fix". The problem was reproducible and his logic explained by more developers. If the problem has been resolved, then, please, change "resolution" field to "fixed", else a patch

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2008-01-02 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> wont fix status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing l

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-12-26 Thread Senthil
Senthil added the comment: > > Senthil added the comment: > > Irrespective of the patch, this issue is reproducable with the code in the > trunk for Python 2.6. Should we close this then? > __ Sorry, I meant to say "NOT Reproducable". __

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-12-26 Thread Senthil
Senthil added the comment: Irrespective of the patch, this issue is reproducable with the code in the trunk for Python 2.6. Should we close this then? n 2.6a0 (trunk:59600M, Dec 25 2007, 13:54:34) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "licens

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-12-01 Thread jos
jos added the comment: included torriem's fix. IMHO, there is no clear solution for this because this is due to HTTP server's "bug" and a bug is the one that you can't predict accurately... Added file: http://bugs.python.org/file8841/httplib.py.diff __ Tracker <

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-10-16 Thread Michael Torrie
Michael Torrie added the comment: I had a situation where I was talking to a Sharp MFD printer. Their web server apparently does not serve chunked data properly. However the patch posted here put it in an infinite loop. Somewhere around line 525 in the python 2.4 version of httplib.py, I had t

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-27 Thread jos
jos added the comment: Attached a patch for this problem. This one just ignores the buggy chunk-size and close the connection. As gagenellina said earlier, this might not be a good way to fix this, but I could not come up w

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: > In my opinion, Python urllib "should" be more practical and > provide a way to read this kind of page. [quotes mine] Totally agreed. Someone "should" submit a patch. __ Tracker <[EMAIL PROTECTED]>

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-26 Thread jos
jos added the comment: Firefox 2.0.0.7 and Safari 2.0.4 can who this page. In my opinion, Python urllib should be more practical and provide a way to read this kind of page. "In general, an implementation must be conserva

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-26 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe the French internet is incompatible with the rest of the world? :-) -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is a server bug. Internet Explorer 6 can't show the page either. The response is malformed; it uses chunked transfer, and RFC2616 section 3.6.1 says "The chunk-size field is a string of hex digits indicating the size of the chunk. The chunked encoding

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-26 Thread Francesco Cosoleto
New submission from Francesco Cosoleto: urllib fail to read URL contents, urllib2 crash Python Python version: - Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [M