File upload via FTP gaieerror Python 2.6
<p>I'm trying to upload a text file to an FTP server, but I am getting this error:</p>

<p><code>gaierror: [Errno 11004] getaddrinfo failed</code></p>

<p>Here is my code.</p>

<pre><code>        s = ftplib.FTP("ftp://xbrera.co.cc", "myuser", "mypass")
        f = open(path + "LD.txt", "r")
        s.storbinary("STOR " + path + "LD.txt")
        f.close()
        s.quit()
</code></pre>

<p>What am I doing wrong, and why am I getting this error? Thanks!</p>
