cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Using libCurl over SSH Tunnel

From: Jérôme Patey <jerome_at_patey.net>
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 ?

Thanks,
Jerome

-- 
Jérôme Patey - jerome_at_patey.net
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-12

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET