cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: Avoding connection re-use when using CURLOPT_HTTPPROXYTUNNEL

From: Jad Chamcham <chamcham007_at_hotmail.com>
Date: Tue, 3 Nov 2009 17:36:53 -0800

Thanks Daniel.

You are correct, one type of requests has CURLOPT_HTTPROXYTUNNEL set and the other does not; yet they both go through the same proxy, hence the confusion.
Would you like me to file a bug on this?

- Jad

> Date: Tue, 3 Nov 2009 19:58:34 +0100
> From: daniel_at_haxx.se
> To: curl-library_at_cool.haxx.se
> Subject: Re: Avoding connection re-use when using CURLOPT_HTTPPROXYTUNNEL
>
> On Mon, 2 Nov 2009, Jad Chamcham wrote:
>
> > I have a question regarding how to avoid the re-use of HTTP connections when
> > using CURLOPT_HTTPPROXYTUNNEL.
>
> > Essentially if the app is going through a proxy and uses the CONNECT method
> > for certain requests, how can I avoid subsequent requests (that don't use
> > the CURLOPT_HTTPPROXYTUNNEL flag) from re-using the same connection, which
> > will make the proxy tunnel these requests through to the wrong destination.
>
> Ah, are you saying that the second connection is still using the proxy, just
> not with CURLOPT_HTTPPROXYTUNNEL set? If that is the case, it sounds like
> you've stepped right into a bug that needs to be fixed.
>
> > What would be the best way to address this.
>
> Make sure that the proxytunnel option is also taken into account when a
> connection is re-used or not.
>
> > Please note that I am using the multi interface.
>
> The connection re-use logic is the exact same no matter which interface is
> used.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-04

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET