cURL / Mailing Lists / curl-library / Single Mail


Re: Using libCurl over SSH Tunnel

From: Jérôme Patey <>
Date: Thu, 15 Apr 2010 10:11:25 +0200

On Thu, 15 Apr 2010 09:43:09 +0200 (CEST), Daniel Stenberg
> On Thu, 15 Apr 2010, Jérôme Patey wrote:
>> OK, I have tried to compile OpenSSH as a library... and thing is: it
>> can't
>> be done. Too many assumptions that we can kill the process and stuff.
> I tried and gave up that idea years ago... That's why we work so much
> within
> the libssh2 project instead! But I didn't suggest you'd be able to use
> as a
> library, I said you would invoke the 'ssh' command line tool.

Yes, but that is not possible :(

>> Do you know any other ssh library able to act as a SOCKS proxy ?
> I don't know of _any_ ssh library able to act as a SOCKS proxy. It
> isn't the job of a SSH library either if you ask me...

Yep, I know that.

I tried using libssh2 and call the channel_write() instead of swrite(), it
works fine with HTTP over SSH.

But the problem happens when I want to use HTTPS, it seems that libCurl
sends data as if it was HTTP, because the server returns an error ("bad
request, are you using HTTP on when server only understands HTTPS?").

I have to figure out what the problem is...


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