curl-library
Re: Proxy off ?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 10 Sep 2004 19:21:25 +0200 (CEST)
Date: Fri, 10 Sep 2004 19:21:25 +0200 (CEST)
On Fri, 10 Sep 2004, Paul Johnson wrote:
> if my own preferences settings says no proxy, it just doesn't set anything,
> howevever the curl object gets left in its last state which in my case was
> for http proxy.
Then set CURLOPT_PROXY to NULL, that removes the previous setting.
> curl_easy_setopt(curl,CURLOPT_PROXYTYPE,CURLPROXY_HTTP);
CURLOPT_PROXYTYPE doesn't enable or disable a proxy though, it just changes
what type of proxy libcurl uses if you enable one (by setting a host name with
CURLOPT_PROXY).
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-09-10