cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Maximum redirects followed problem with ntlm proxy auth

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 10 May 2005 13:26:01 +0200 (CEST)

On Tue, 10 May 2005 eupec_at_supereva.it wrote:

> My setup: Linux Mandrake 10.1, curl 7.12.1 (i586-mandrake-linux-gnu)
> libcurl/7.12.1 OpenSSL/0.9.7d zlib/1.2.1.1 libidn/0.5.4

...

> the curl -v www.google.com give this output:
>
> < HTTP/1.0 407 Proxy Authentication Required
> < Server: squid/2.5.STABLE9-NT-CVS
> < Mime-Version: 1.0
> < Date: Tue, 10 May 2005 10:53:09 GMT
> < Content-Type: text/html
> < Content-Length: 1404
> < Expires: Tue, 10 May 2005 10:53:09 GMT
> < X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
> < Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAADgAAAACAgAC7CQHUZ6p4rYAAAAAAAAAAAAAAAA4AAAABQCTCAAAAA8=
> < X-Cache: MISS from SERVER.xyz.locale
> < Proxy-Connection: close

*Dang*. There's the villain! I can't be disconnect the connection since NTLM
is connection-based and thus the negotiation has to be restarted on the next
fresh connect (which is then again closed and then we say loop...)

Do you know what this request looks like when you use Mozilla?

Can you try using -H 'Proxy-Connection: Keep-Alive' and see if that makes any
difference?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-10