cURL / Mailing Lists / curl-library / Single Mail


Re: Using libCurl over SSH Tunnel

From: Jérôme Patey <>
Date: Mon, 12 Apr 2010 20:54:57 +0200

On 12/04/2010 17:45, Daniel Stenberg wrote:
> I was more thinking about you setting up a tunnel like:
> "ssh -L 8080:[remotehost]:80 [sshserver]"
> and then you point libcurl to the site, as you would with curl like:
> curl -H "Host: [remotehost]" http://localhost:8080/[rest of url]

Yes, that would be good... but how can I do that programmatically ? I'm
not using libCurl from command line, but inside a program. I'm not great
with sockets... do you think it's possible to do that in code ?


Jérôme Patey -
List admin:
Received on 2010-04-12