curl-users
Problem with Cookie Set and Read in Curl
Date: Mon, 20 Sep 2004 22:47:25 -0700 (PDT)
Hi all,
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
Using Cul Version curl 7.9.5 (i386-redhat-linux-gnu)
libcurl 7.9.5 (OpenSSL 0.9.6b) (ipv6 enabled)
I am expecting your favorable reply.
Thanks,
Ashok.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on 2004-09-21