curl-users
[ curl-Bugs-556033 ] Re-using existing connection
Date: Tue, 14 May 2002 10:12:30 -0700
Bugs item #556033, was opened at 2002-05-14 10:12
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=556033&group_id=976
Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Re-using existing connection
Initial Comment:
Hi.
If you use a proxy you have the fallowing problem. Curl is re-
using the connection if your url contains another url to a server you
opened a connection before.
Here is some code to be more
clear:
curl_easy_setopt(curl,CURLOPT_URL,"http://www.msn.com/");
curl_easy_setopt(curl,
CURLOPT_PROXY,"proxy:3128");
curl_easy_perform(curl);
curl_easy_setopt(curl,CURLOPT_URL,"http://www.yahoo.com/http://www.msn.com/");
curl_easy_perform(curl);
You
will get something like:
* Connected to proxy (192.168.0.1)
>
GET http://www.yahoo.com/http://www.msn.com/ HTTP/1.1
User-
Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
Host:
www.msn.com
Pragma: no-cache
The URL is ok but the host is
wrong.
I use the latest library "libcurl 7.9 (OpenSSL
0.9.6b)".
Tell me if I can help you solve this
problem.
Regards,
Daniel
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=556033&group_id=976
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-14