curl-users
Re: https with curl - Please help
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 6 Aug 2005 22:45:29 +0200 (CEST)
Date: Sat, 6 Aug 2005 22:45:29 +0200 (CEST)
On Fri, 5 Aug 2005, Kishorekumar D wrote:
> The user name and password is fake, but if it got the request right it
> should return a HTML with authentication required error but it isn't. I
> tried using curl with another https site to login and it worked fine. Please
> help me guys.
First use LiveHTTPHeaders to capture a stream that your browser sends when you
do this manually.
Then you'll see that you forgot to url-encode the spaces in the POST data.
I would also guess that you need to ask curl to follow a Location:.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-08-06