This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urlopen returning empty string
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: mrabarnett
Priority: normal Keywords:

Created on 2011-07-31 23:04 by mrabarnett, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg141481 - (view) Author: Matthew Barnett (mrabarnett) * (Python triager) Date: 2011-07-31 23:04
Someone over at StackOverflow had a problem with urlopen in Python 3.2.1:

    http://stackoverflow.com/questions/6892573/problem-with-urlopen/6892843#6892843

This is the code:

    from urllib.request import urlopen
    f = urlopen('http://online.wsj.com/mdc/public/page/2_3020-tips.html?mod=topnav_2_3000')
    page = f.read()
    f.close()

With Python 3.1 and Python 3.2 it works OK, but with Python 3.2.1 the
read returns an empty string.
msg141483 - (view) Author: Matthew Barnett (mrabarnett) * (Python triager) Date: 2011-07-31 23:16
Just been told this bug has already been reported as issue #12576.
History
Date User Action Args
2022-04-11 14:57:20adminsetgithub: 56880
2011-07-31 23:16:57mrabarnettsetstatus: open -> closed
2011-07-31 23:16:21mrabarnettsetresolution: duplicate
messages: + msg141483
2011-07-31 23:04:49mrabarnettcreate