curl-and-php
Re: libcurl and curl COOKIE help.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Dec 2005 11:27:41 +0100 (CET)
Date: Fri, 16 Dec 2005 11:27:41 +0100 (CET)
On Thu, 15 Dec 2005, shawn a wrote:
> curl -d "password=something&userId=123" -D login.headers -c
> login.cookies -b login.cookies -L -k -o login.html
> https://someurl.com/login.do
...
> Any input would be great. THANKS!!
Your PHP code didn't take the -L into account (CURLOPT_FOLLOWLOCATION) and it
didn't disable the host name verification of the remote certificate that -k
implies (CURLOPT_SSL_VERIFYHOST).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2005-12-16