On Jan 22, 2013, at 8:32 AM, meejah meejah@meejah.ca wrote:
- periodically run one or more tests which can be:
3.1) an HTTP GET request over Tor to its own web server, 3.2) an HTTP POST request to measure upload speed, 3.3) a GET or POST request to a locally running hidden service,
You'd need https://github.com/ln5/twisted-socks for a SOCKS client for this (looks like V4 only?). There are some other ones floating around out there, too, but nothing in core Twisted (as far as I recall). Ah, like https://twistedmatrix.com/trac/ticket/1330
What I am currently using as a SOCKS Client these days is this one: https://github.com/hellais/txsocksx.
It's got decent unittest coverage and some examples on how to use it.
It supports v4 and v5.
We've been using it quite heavily in ooniprobe and it appears to be doing it's job well.
~ A.