New submission from Albert Weichselbraun albert.weichselbr...@gmail.com:
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
Senthil Kumaran orsent...@gmail.com added the comment:
Its funny, confirmed the problem in the trunk.
--
assignee: - orsenthil
nosy: +orsenthil
resolution: - accepted
stage: - needs patch
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com 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:
Florent Xicluna florent.xicl...@gmail.com 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:
Senthil Kumaran orsent...@gmail.com 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