cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libCurl over SSH Tunnel

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

On Thu, 15 Apr 2010 09:43:09 +0200 (CEST), Daniel Stenberg
<daniel_at_haxx.se>
wrote:
> 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
it
> 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
really
> 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...

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