cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Passing raw data through a proxy

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 14 Jan 2006 22:44:05 +0100 (CET)

On Sat, 14 Jan 2006, Karl M wrote:

> I would like to use libcurl to build an application that would authenticate
> with a proxy and do a CONNECT and then pass raw data through the proxy. I
> just need stdin/stdout data transferred to/from the proxy(socket) after the
> CONNECT and authentication are complete. I would then use this application
> with the ProxyCommand for OpenSSH.

You're the third person within a short time period who asks for something like
this!

No, this is not something libcurl currently supports but clearly is something
we should strive to add support for.

> I am looking for advice on the cleanest way to accomplish this with libcurl
> (or curl if it can do it directly). If I need to make extensions, I would
> like make the extensions acceptable for contribution to the project.

Allen Chan is working on a patch to bring this functionality. He summed the
features done so far in this mail:

         http://curl.haxx.se/mail/lib-2006-01/0102.html

I'm sure we can make something good of this if we all bring constructive
feedback and good source code!

Would you say Allen Chan's suggested API would be good enough for your
intended use case?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-14