[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website
Martin Panter
report at bugs.python.org
Mon Jan 12 02:12:35 CET 2015
Martin Panter added the comment:
Not a Python bug. The web site seems to be doing this based on the user agent; if you change it, it works:
urlopen(Request("http://www.thomsonlocal.com/", headers={"User-Agent": "https://bugs.python.org/issue21896"}))
----------
nosy: +vadmium
type: crash -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21896>
_______________________________________
More information about the Python-bugs-list
mailing list