cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: http keepaliveoption

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 25 Mar 2004 09:28:28 +0100 (CET)

On Wed, 24 Mar 2004, Xiuping Hu wrote:

> [Xiuping Hu] We have apache server that use libcurl to do the proxy HTTP.
> If we set Apache KeepAlive On, that means reuse connection, we get hanging
> Randomly. If we set KeepAlive Off, that means use fresh connection for each
> request, every thing works fine.

And in what way does the KeepAlive option alter the headers the proxy
provides? And since you use NTLM, it doesn't make sense. NTLM authenticates
connections, so curl must keep the connection and do at least a couple of
requests only to get the actual content.

> I notice that in 7.11.1 change log, there is one line:
>
> CURLOPT_FRESH_CONNECT and CURLAUTH_NTLM now work when set together
>
> What does this mean? If this means if we use NTLM, we need to use fresh
> connection for each request? No reuse the connection?

It means that if you set CURLOPT_FRESH_CONNECT you can still use
CURLAUTH_NTLM. In previous versions you couldn't use NTLM if you had
CURLOPT_FRESH_CONNECT set true.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-03-25