Charles-Francois Natali neolo...@free.fr added the comment:
It's a dupe of http://bugs.python.org/issue8035.
By the way, it works with 2.7 because urllib used HTTP 1.0 by default, and in
py3k it now uses HTTP 1.1.
And from what I understood (by I'm by no means an http expert), in http 1.0 the
Antoine Pitrou pit...@free.fr added the comment:
Ok, closing as duplicate.
--
resolution: - duplicate
status: open - closed
superseder: - urllib.request.urlretrieve hangs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10577
Senthil Kumaran orsent...@gmail.com added the comment:
On Mon, Nov 29, 2010 at 05:51:35PM +, Antoine Pitrou wrote:
However, urllib.request.urlopen() works fine in this case, so
perhaps this advocates for deprecating the old stuff? Senthil?
Yes. It should be deprecated.. I created a
Changes by SilentGhost michael.mischurow+...@gmail.com:
--
title: (Fancy) URL opener stucks whet try to open page - (Fancy) URL opener
stuck when trying to open redirected url
___
Python tracker rep...@bugs.python.org
SilentGhost michael.mischurow+...@gmail.com added the comment:
@xhresko: This is not valid py3k code.
It is 302 redirect. I get the following error:
IOError: [Errno socket error] [Errno 10060] A connection attempt failed because
the connected party did not properly respond after a period of
SilentGhost michael.mischurow+...@gmail.com added the comment:
@xhresko: why are you passing empty dict to the constructor? it works just fine
with opener = urllib.request.FancyURLopener()
resolution: invalid ?
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I can reproduce the issue with 3.2 here. Using Wireshark, I see that the
request to http://www.ihnez.cz is satisfied, but the second request (to
http://ihnez.cz) is never issued. Here is the Wireshark dump for the TCP
session (request, then
Changes by SilentGhost michael.mischurow+...@gmail.com:
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10577
___
___
Changes by SilentGhost michael.mischurow+...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10577
___
___
Antoine Pitrou pit...@free.fr added the comment:
That line of code (`void = fp.read()`) dates back to a commit by Guido in 1995,
and isn't motivated by any comment or message. HTTP servers probably have
evolved till then :)
--
___
Python tracker
10 matches
Mail list logo