cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to route cURL requests through Tor

From: Anthony Papillion <anthony_at_cajuntechie.org>
Date: Sat, 1 Feb 2014 22:49:15 -0600

On 02/01/2014 09:50 PM, Gisle Vanem wrote:
> "Anthony Papillion" <anthony_at_cajuntechie.org> wrote:
>
>> I'm writing an application that will include the cURL command line tool
>> within it. I need to route cURL data through Tor that is installed on
>> the users machine. Is there a way to do this or is it impossible?
>
> You can use the built-in Socks5 server inside Tor (or enable it in your
> torrc).
> And since curl supports the Socks5 protocol, connect via that. Something
> like:
> curl -o <file.html> --socks5-hostname localhost:9050 <URL>

Perfect. Many thanks!

Anthony
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-02