Message129899
#!/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 |
|
Date |
User |
Action |
Args |
2011-03-02 14:51:48 | OJW | set | recipients:
+ OJW |
2011-03-02 14:51:48 | OJW | set | messageid: <1299077508.41.0.756366246736.issue11375@psf.upfronthosting.co.za> |
2011-03-02 14:51:47 | OJW | link | issue11375 messages |
2011-03-02 14:51:47 | OJW | create | |
|