cURL / Mailing Lists / curl-users / Single Mail

curl-users

cookie problem in curl

From: Ashok kumar <ashokkumar_g77_at_yahoo.com>
Date: Tue, 21 Sep 2004 01:08:33 -0700 (PDT)

Hi,

Thanks for your reply.

I am using Curl statement is:

curl -o 'page1.html' -L -2 -c 'c.txt' -b 'c.txt' -d
'ddd=<unamw><pwd>' 'aaaa.com/login.html'

For above curl the result of cookie is below:

HTTP/1.1 302 Found
Date: Mon, 20 Sep 2004 04:54:54 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 mod_ssl/2.8.16
OpenSSL/0.9.7c
X-Powered-By: PHP/4.3.4
Set-Cookie: session=5b3fdf1576fc1a8d9d32c0d87d97f613;
expires=Mon, 20-Sep-2004
07:54:51 GMT; path=/; domain=.aaa.com; secure
Location: index.html
Transfer-Encoding: chunked
Content-Type: text/html

HTTP/1.1 302 Found
Date: Mon, 20 Sep 2004 04:54:58 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 mod_ssl/2.8.16
OpenSSL/0.9.7c
X-Powered-By: PHP/4.3.4
Location:
https://aaa.com/login.html?dest=https%3A%2F%2Faaa.com%2Findex.html
Transfer-Encoding: chunked
Content-Type: text/html

HTTP/1.1 200 OK
Date: Mon, 20 Sep 2004 04:55:01 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4 mod_ssl/2.8.16
OpenSSL/0.9.7c
X-Powered-By: PHP/4.3.4
Transfer-Encoding: chunked
Content-Type: text/html

session is not set properly.This is like Login page.

My curl version is :
curl 7.9.5 (i386-redhat-linux-gnu) libcurl 7.9.5
(OpenSSL 0.9.6b) (ipv6 enabled)

Thanks,
Ashok.

                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
Received on 2004-09-21