Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5243

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.theremailer.net!frell.theremailer.net!anonymous
Comments This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@frell.theremailer.net>. Identifying the real sender is technically impossible.
Newsgroups comp.lang.python
Subject Re: can't get urllib2 or httplib to work with tor & privoxy
From Bob Fnord <bob@example.com>
References <mailman.1378.1305023595.9059.python-list@python.org>
Message-ID <44ec92ef1af181bd3839228f88c1b78d@msgid.frell.theremailer.net> (permalink)
Precedence anon
Date Thu, 12 May 2011 17:51:09 +0200
Mail-To-News-Contact abuse@frell.theremailer.net
Organization Frell Anonymous Remailer
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5243

Show key headers only | View raw


Chris Angelico <rosuav@gmail.com> wrote:

> On Tue, May 10, 2011 at 4:20 AM, Bob Fnord <bob@example.com> 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're almost certainly going to see exactly the same on the
> HTTP.)
> 
> A snoop server is simply an HTTP server that dumps its requests to
> stdout or a file, utterly raw. You can write one in Python fairly
> easily, or use another program; if I'm working on Windows, I'll
> generally use my own RosMud MUD client, but you'll be able to whip up
> a cross-platform one in half a page of code in any decent high level
> language. I recommend you work at the sockets level, rather than using
> an HTTP library, unless you have one that can emit the entire request,
> exactly as it came from the client.
> 
> Once you've found the difference(s) between Lynx and your script, you
> can see what's causing the 503 (Service Unavailable) error; it may be
> that you need to authenticate with the proxy.

Duh, I was doing something else stupid. 
Thanks but never mind!

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

can't get urllib2 or httplib to work with tor & privoxy Bob Fnord <bob@example.com> - 2011-05-09 20:20 +0200
  Re: can't get urllib2 or httplib to work with tor & privoxy Chris Angelico <rosuav@gmail.com> - 2011-05-10 20:33 +1000
    Re: can't get urllib2 or httplib to work with tor & privoxy Bob Fnord <bob@example.com> - 2011-05-12 17:51 +0200

csiph-web