curl-and-php
Help w/ POST and Session Cookies
Date: Fri, 14 Sep 2001 22:45:54 -0700
I am using cURL 7.8.1
Here is the cmd I am using:
curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -d "postdata" URL -i
And this is what is returned:
HTTP/1.1 100 Continue
Server: Microsoft-IIS/4.0
Date: Sat, 15 Sep 2001 05:41:02 GMT
Set-Cookie: SITESERVER=ID=82cfde9cbb883739e15286ec6045c4a8; expires=Monday, 01-Jan-2035 00:00:00 GMT; path=/; domain=.istrategy.com
Expires: Thu, 01 Dec 1994 16:00:00 GMT
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/4.0
Date: Sat, 15 Sep 2001 05:41:02 GMT
Set-Cookie: SITESERVER=ID=82cfde9cbb883739e15286ec6045c4a8; expires=Monday, 01-Jan-2035 00:00:00 GMT; path=/; domain=.istrategy.com
Expires: Thu, 01 Dec 1994 16:00:00 GMT
pragma: no-cache
Location: confirmation.asp
Content-Type: text/html
Set-Cookie: SessionGUID=%7BC79C8D14%2DEF08%2D4CF4%2DB106%2D12384DCCC4C1%7D; path=/
Set-Cookie: ASPSESSIONIDGGGQQQUP=PGPJDKODMDAPHLFPBILHILAJ; path=/
Cache-control: no-cache
Transfer-Encoding: chunked
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found here.</body>
Here is what I think is happening:
After the POST, the server sets a cookie and then attempts to read that cookie and then determines what action to take. How do I simulate this action?
Roger
Received on 2001-09-15