cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Passing raw data through a proxy

From: Allen Chan <innovation101_at_gmail.com>
Date: Sun, 15 Jan 2006 10:35:02 +0800

On 1/15/06, Allen Chan <innovation101_at_gmail.com> wrote:
> On 1/15/06, Karl M <karlm30_at_hotmail.com> wrote:

> > CONNECT and authentication are complete. I would then use this application
> > with the ProxyCommand for OpenSSH.

A new function springs to mind, what if you could also specify the
socket that libcurl would use? We already have specify-the-local-port,
might as well specify the socket too. Multiple proxy tunnelling
anyone? Sounds like a bad hacker movie.

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