curl-users
Re: Raw protocol? Would like to use curl for ssh ProxyCommand
Date: Tue, 4 Jun 2013 02:22:54 -0500
On Tuesday, June 4, 2013, Daniel Stenberg wrote:
> On Mon, 3 Jun 2013, Nico Williams wrote:
>
> I've tried "curl ... --proxy-negotiate --proxytunnel --proto =file
>> foohost:22" and variations, but it always fails with
>>
>> curl: (1) Protocol http not supported or disabled in libcurl
>>
>
> You said only the 'file' protocol should be allowed (with --proto) so of
> course HTTP won't work! (which is what is implied since you didn't specify
> protocol un the URL)
That was a braino. The file handler is for the file URI scheme.
> I've tried a program I found, curltunnel, from 2007, which too fails,
>> because it too wants to speak HTTP to the target host. In particular I
>> don't see how to stop libcurl from wanting to speak *a protocol* other than
>> "raw".
>>
>
> Well, you're not using libcurl up there. You're using curl and it has no
> way to only connect. curltunnel was a small attempt at something that never
> got anywhere afair, I don't believe there is any promise anywhere of that
> being functional.
>
I tried the curl command and libcurl. I think --proxytunnel was meant to
give me what I want, but if so it doesn't work. I think there's a bug in
libcurl regarding cinnect_only. I'll take it to the libcurl list as
suggested. Thanks.
-------------------------------------------------------------------
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 2013-06-04