cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-651460 ] multi + https + authentication + proxy

From: <noreply_at_sourceforge.net>
Date: Tue, 10 Dec 2002 07:01:43 -0800

Bugs item #651460, was opened at 2002-12-10 15:01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=651460&group_id=976

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher R. Palmer (crpalmer13)
Assigned to: Daniel Stenberg (bagder)
Summary: multi + https + authentication + proxy

Initial Comment:
The multi interface does not seem to work if you have an
authenticated https request through a proxy. The
attached example program lets you see the behaviour.
Get a proxy running on your local machine, compile the
attached code and run it with the following command
line options:

 * run this program with no options: should retrieve the
test page
 * (multi interface with no proxy)
 * run this program with --proxy: will fail to retrieve the
test page
 * (multi interface with a proxy)
 * run this program with --proxy --easy: should retrieve
the test page
 * (easy interface with a proxy)

I've tested this on redhat linux 7.2 (i386) using 7.10.2.
It looks like Curl_proto_connect is being called twice.
The following patch fixes the problem:

diff --recursive --unified=5 curl-7.10.2-orig/lib/url.c curl-
7.10.2/lib/url.c
--- curl-7.10.2-orig/lib/url.c Mon Nov 11 18:03:05 2002
+++ curl-7.10.2/lib/url.c Mon Dec 9 13:24:47 2002
@@ -2780,11 +2780,11 @@
     bool connected;

     /* Connect only if not already connected! */
     result = ConnectPlease(conn, hostaddr,
&connected);

- if(connected)
+ if(connected && data->state.used_interface !=
Curl_if_multi)
       result = Curl_protocol_connect(conn, hostaddr);

     if(CURLE_OK != result)
       return result;
   }

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=651460&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-10