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: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Nov 2009 19:58:34 +0100 (CET)

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
Received on 2009-11-03

These mail archives are generated by hypermail.

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

File upload with ASP.NET