This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author OJW
Recipients OJW
Date 2011-03-02.14:51:47
SpamBayes Score 0.021004044
Marked as misclassified No
Message-id <1299077508.41.0.756366246736.issue11375@psf.upfronthosting.co.za>
In-reply-to
Content
#!/usr/bin/python
import socks
import socket

socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, "127.0.0.1", 9050, True)
socket.socket = socks.socksocket

import urllib2
print urllib2.urlopen("http://example.com/").read()


Expected result: all network communications go through SOCKS4A proxy

Actual result: DNS lookup of example.com goes through default gateway, followed by HTTP connection via the proxy
History
Date User Action Args
2011-03-02 14:51:48OJWsetrecipients: + OJW
2011-03-02 14:51:48OJWsetmessageid: <1299077508.41.0.756366246736.issue11375@psf.upfronthosting.co.za>
2011-03-02 14:51:47OJWlinkissue11375 messages
2011-03-02 14:51:47OJWcreate