cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problem with Cookie Set and Read in Curl

From: Ashok <ashokkumar_at_ceruleaninfotech.com>
Date: Mon, 20 Sep 2004 15:32:40 +0530

Hi,
Using curl utility,I want to read and set cookies. For that I am using the
following options :

-D for set cookie
-b for read cookies.

In that page Redirctions are occured.In first Redirection session ID is
setting properly,after the following two Redirections session is not setting
properly.

The following is the three Redirections Cookie content.

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

Thanks,
Ashok.
Received on 2004-09-20