cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Proxy authentication with CONNECT_ONLY option

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 Jul 2006 13:19:01 +0200 (CEST)

On Fri, 7 Jul 2006, Praks wrote:

> if(data->set.connect_only && data->state.authhost.done &&
> data->state.authproxy.done)

> construct, because of which the above condition is always false and even
> with CONNECT_ONLY option set, the control goes to Curl_do() instead of
> Curl_done().

Perhaps the condition would better be something in this style:

   if(data->set.connect_only) {

     if((!conn->bits.user_passwd || data->state.authhost.done) &&
        (!conn->bits.proxy_user_passwd || data->state.authproxy.done)) {

       ....

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

That function is for doing a CONNECT through the proxy I don't think that'll
help us for this case. Or perhaps I'm not understanding what you suggest.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-07-07