[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks Amaury, that was nice debugging. The problem is with Apache tomcat server at the remote end, which is misbehaving on Connection:close header being sent by urllib2. We can't do anything about it, the bug reporter can take it up with server. However,

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Florent Xicluna
Florent Xicluna added the comment: Confirmed with telnet sessions: == Simulate "urllib2" == $ telnet www.mfsa.com.mt 80 GET /insguide/english/glossarysearch.jsp?letter=all HTTP/1.1 Accept-Encoding: identity Host: www.mfsa.com.mt Connection: close User-Agent: Python-urllib/2.7 HTTP/1.1 200 OK

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Hmm, it looks like a web server problem to me. urllib2 uses the HTTP/1.1 protocol, and sends the "Connection: close" header. I hacked urllib2: when this header is not sent, the content is retrieved normally. This page: http://www.mail-archive.com/us...

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Its funny, confirmed the problem in the trunk. -- assignee: -> orsenthil nosy: +orsenthil resolution: -> accepted stage: -> needs patch ___ Python tracker _

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Albert Weichselbraun
New submission from Albert Weichselbraun : urllib2 fails to retrieve the content of http://www.mfsa.com.mt/insguide/english/glossarysearch.jsp?letter=all >>> urllib2.urlopen("http://www.mfsa.com.mt/insguide/english/glossarysearch.jsp?letter=all";).read() '' urllib handles the same link correct