[tor-qa] testing tor proxy with a script

Georg Koppen gk at torproject.org
Tue Apr 30 05:58:00 UTC 2019


Hi!

André Rodier:
> Hello everyone,
> 
> I was not sure where to post this, but maybe QA is a good place.

This fell almost through the cracks, sorry for the delay. I think
tor-talk could have been a better choice, but, yes, I can see why the
decision where to send your mail has been hard. :)

> I have a project that includes an automatic installation of a Tor proxy.
> 
> After the installation, I am able to test the proxy works as expected,
> using the official site, i.e. https://check.torproject.org/
> 
> I am using curl / grep to test for a string like "Congratulations, etc..."
> 
> However, I know this is not perfectly reliable, as the layout of the
> HTML can change at any time.
> 
> I would like to know if there is a better way to do this, for instance a
> special URL that would return the same information, in JSON or plain text.
> The plain text option is perfectly fine.

I think https://check.torproject.org/api/ip is what you want.

Georg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.torproject.org/pipermail/tor-qa/attachments/20190430/977ff78b/attachment.sig>


More information about the tor-qa mailing list