HTTPConnection request socket.gaierror in python
<p>I encountered an error today while trying to retrieve an XML by sending a 'GET' HTTP request.</p>

<pre><code>from httplib import HTTPConnection
import urllib

params = urllib.urlencode({'sK': 'test', 'sXML': 1})
httpCon = HTTPConnection("http://www.podnapisi.net",80)
httpCon.request('GET', '/en/ppodnapisi/search',params)
r1 = httpCon.getresponse()
</code></pre>

<p>and here is the error i got:</p>

<pre><code>.....
File "C:\Python27\lib\socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 11004] getaddrinfo failed
</code></pre>

<p>The XML that I am trying to retrieve <a href="http://www.podnapisi.net/en/ppodnapisi/search?sK=test&amp;sXML=1" rel="nofollow">HERE</a></p>

<p>How can I fix this error ?</p>

<p>Thanks in Advance ...</p>
