cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Passing raw data through a proxy

From: Karl M <karlm30_at_hotmail.com>
Date: Sat, 14 Jan 2006 19:27:33 -0800

Hi Allen...

Given that any of the bidirectional transfers that we might consider
probably start getting more application specific, it may be best just to let
libcurl handle the proxy work and hand over the socket. I can easily do my
own bidirectional binary copy loop.

Look at Cygwin (you can have a GNU toolset on windows)...then you can just
do a command line diff.

Thanks,

...Karl

>From: Allen Chan Subject: Re: Passing raw data through a proxy
>Date: Sun, 15 Jan 2006 10:29:15 +0800
>
>On 1/15/06, Karl M wrote:
>
> > Do I understand correctly that the current transfer capabilities for
>libcurl
> > are pretty much one way? Supporting file reads or writes (gets, puts,
>etc.)
> > between the local and remote? So bidirectional I/O would be a bigger
>change?
>
>Hi Karl, I'm glad you are also interested on this one. This was what I
>was also trying to achieve, but currently do this outside libcurl
>instead.
>
>I mentioned in the thread linked by Daniel that to round up the
>features, there should also be a raw transfer function. But I am not
>currently working on that since the program I am working on already
>has this raw I/O and just needed the features I mentioned on that
>thread.
>
>But I suppose it would just involve creating APIs for functions
>already in curl, so it should not be too hard.
>
>Do you think you still need the raw transfer or should the
>connect-only-and-leave you-with-a-socket function already be enough?
>
>I'll get you the patch on monday, even if i dont get the diff working
>(haven't tried it yet, winmerge?) I'll post the code and if you could,
>just add it manually yourself =D
>
>Allen
>
> >
> >
> > >From: Daniel Stenberg Subject: Re: Passing raw data through a proxy
> > >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-15