curl-users
Re: Re: Maximum redirects followed problem with ntlm proxy a
Date: 11 May 2005 07:16:06 -0000
-----Messaggio Originale-----
Da: daniel-curl_at_haxx.se
A: eupec_at_supereva.it, curl tool talk <curl-users_at_cool.haxx.se>
Data invio: Tue, 10 May 2005 13:26:01 +0200 (CEST)
Oggetto: Re: Re: Maximum redirects followed problem with ntlm proxy auth
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?
The -H 'Proxy-Connection: Keep-Alive' makes the difference, whit this option, curl works as expected :)
Just a question: can I put this option in my .curlrc file? I've tried, but it won't work. My .curlrc:
-H 'Proxy-Connection: Keep-Alive'
--ntlm
--proxy-ntlm
-x 192.168.168.1:3128
-U mydomain\myusername:mypassword
if I erase the "-H 'Proxy-Connection: Keep-Alive'" line from .curlrc and type curl -H 'Proxy-Connection: Keep-Alive' www.google.com curl works..
A big thank you for your help :)
Pk
::--
:: Commercial curl and libcurl Technical Support: ::http://haxx.se/curl.html
---------------------------------------------------------------
Scegli il tuo dominio preferito e attiva la tua email! Da oggi
l'eMail di superEva e' ancora piu' veloce e ricca di funzioni!
http://webmail.supereva.it/new/
---------------------------------------------------------------
Received on 2005-05-11