Sockets Through proxy in python
<p>Hello
Is there any way to connect through a proxy using sockets in python.
This is giving me an error</p>

<pre><code>import socket, sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("www.python.org", 80))

Traceback (most recent call last):
File "&lt;pyshell#5&gt;", line 1, in &lt;module&gt;
soc.connect(("http://www.python.org",80))
File "&lt;string&gt;", line 1, in connect
gaierror: [Errno -5] No address associated with hostname
</code></pre>

<p>Thanks</p>
