cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to route cURL requests through Tor

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Sun, 2 Feb 2014 04:50:57 +0100

"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>

--gv
-------------------------------------------------------------------
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