Re: cURL and origin cookie redirect authentication based method on a proxy
Date: Tue, 9 Oct 2007 18:42:08 +0200
I did some extra tests and it works fine now using the following request:
curl -i --location-trusted --anyauth -u jdoe:password -b cookie-store
-c cookie-store --trace-ascii trace.txt www.google.com
I had to use the --location-trusted option to send the credentials
right after receiving the 401 code from the redirected address.
Also fyi the proxy is not transparent but explicit. I declared 2 env. variables:
Thanks again for your precious help !
2007/10/5, Daniel Stenberg <daniel_at_haxx.se>:
> On Wed, 3 Oct 2007, laurent zannettacci wrote:
> I just re-read your mail and then it struck me...
> > Does anyone can teel me if such kind of behavior can be repoduced
> > using cURL ?From my understanding and my tests the answer is no but
> > i'm probably wrong.
> > FYI here is the cURL request I tried:
> > curl -i -L --proxy-anyauth -U jdoe:password -k -b cookie-store -c
> > cookie-store --trace-ascii trace.txt www.google.com
> You're using --proxy-anyauth and -U but neither is actually correct here. This
> (strange) proxy does a host-based auth so you should rather use --anyauth and
> -u. Does that make things work differently foe you?
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-10-09