<div><font face="Times New Roman" size="4">Hi There,</font></div><div>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">I have the error
below when trying to download the html content of a webpage. I can
open this webpage in a browser without any problem. I am using Ubuntu
14.04. Could you give me come clues about what is happening and how to solve the issue? Thanks.</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">$python
</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">Python 2.7.6
(default, Mar 22 2014, 22:59:56)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">[GCC 4.8.2] on
linux2</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">Type "help",
"copyright", "credits" or "license" for
more information.</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">>>> import
urllib2</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">request =
urllib2.Request('http://guggenheiminvestments.com/products/etf/gsy/holdings')</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">response =
urllib2.urlopen(request)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">>>> >>>
Traceback (most recent call last):</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File "<stdin>",
line 1, in <module></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 127, in urlopen</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">return
_opener.open(url, data, timeout)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 404, in open</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">response =
self._open(req, data)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 422, in _open</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">'_open', req)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 382, in _call_chain</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">result = func(*args)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 1214, in http_open</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">return
self.do_open(httplib.HTTPConnection, req)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/urllib2.py", line 1187, in do_open</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">r =
h.getresponse(buffering=True)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/httplib.py", line 1045, in getresponse</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">response.begin()</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/httplib.py", line 409, in begin</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">version, status,
reason = self._read_status()</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/httplib.py", line 365, in _read_status</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">line =
self.fp.readline(_MAXLINE + 1)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">File
"/usr/lib/python2.7/socket.py", line 476, in readline</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">data =
self._sock.recv(self._rbufsize)</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">socket.error: [Errno
104] Connection reset by peer</font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font face="Times New Roman" size="4">>>></font></p><p style="margin-bottom: 0in; line-height: 100%">Best,</p><p style="margin-bottom: 0in; line-height: 100%">Jia CHEN</p></div>