Re: can't get urllib2 or httplib to work with tor & privoxy

2011-05-12 Thread Bob Fnord
Chris Angelico wrote: > On Tue, May 10, 2011 at 4:20 AM, Bob Fnord wrote: > > Both methods give me a 503 error... > > As a networking geek, my first thought would be to fire up a tiny > little "snoop server" and see what, exactly, the two methods are > doing. (Ignore the HTTPS options as they'r

Re: can't get urllib2 or httplib to work with tor & privoxy

2011-05-10 Thread Chris Angelico
On Tue, May 10, 2011 at 4:20 AM, Bob Fnord wrote: > Both methods give me a 503 error... As a networking geek, my first thought would be to fire up a tiny little "snoop server" and see what, exactly, the two methods are doing. (Ignore the HTTPS options as they're more complicated to snoop on; you'

can't get urllib2 or httplib to work with tor & privoxy

2011-05-09 Thread Bob Fnord
Here's my python code: import httplib, urllib2 proxy_handler = {'http' : 'localhost:8118', 'https' : 'localhost:8118'} def connect_u2(url = 'http://ipid.shat.net/iponly/'):, proxied = urllib2.ProxyHandler(proxy_handler) opnr = urllib2.build_opener(proxied) opnr.addhe