cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Proxy authentication with CONNECT_ONLY option

From: Praks <praks_123_at_fastmail.fm>
Date: Mon, 10 Jul 2006 14:55:19 +0300

Hi,

   On Fri, 7 Jul 2006, Praks wrote:

    
> Also, is there a possiblity to use Curl_proxyCONNECT() or a minor variant of
> this for this case ?

 Thanks for the responses. I was able to use CONNECT_ONLY with proxy authentication successfully.
 Following are the changes i made:

////////////////////////////////////////////
In the Curl_perform() function in transfer.c i have made the following change
   if(data->set.connect_only) {
              result=Curl_proxyCONNECT(conn, FIRSTSOCKET,conn->host.name,conn->remote_port);
        /* keep connection open for application to use the socket */
        conn->bits.close = FALSE;
        res = Curl_done(&conn, CURLE_OK);
        break;
    }
///////////////////////////////////////////

Also i have used CURLOPT_HTTPPROXYTUNNEL option.

The code seems to work fine. If there are any issues do let me know. :-)

Thanks,
Prakash

   --
Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

-- 
  Praks
  praks_123_at_fastmail.fm
-- 
http://www.fastmail.fm - Access your email from home and the web
Received on 2006-07-10