curl-users
Cookie issues
Date: Mon, 6 Sep 2004 07:09:04 -0500
System info: Win '98...broadband connection and basic computer.
cURL vers: Current (7.12)
I have attempted to use your s/w to connect to an account on www.outwar.com
and download the webpage to collect stats on the account. However, I can't
seem to get -b or -c to work when storing cookies. I should point out that
the cookies *are* saved to a file (both with using this method or
--dump-header
The data saved for me is (actual content of cookies edited :-)):
HTTP/1.1 302 Found
Date: Mon, 06 Sep 2004 10:48:38 GMT
Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 mod_ssl/2.8.15 OpenSSL/0.9.7c
PHP/4.3.1
X-Powered-By: PHP/4.3.1
X-Accelerated-By: PHPA/1.3.3r2
Set-Cookie: ow_sesid=4325534634643634634532vergreer333; path=/;
domain=.outwar.com
Set-Cookie: cuserid2=1234567; expires=Mon, 13-Sep-2004 10:48:38 GMT; path=/;
domain=.outwar.com
Set-Cookie: enc_pass=6k523uj5j5op23j523j5j23iijijd; expires=Mon, 13-Sep-2004
10:48:38 GMT; path=/; domain=.outwar.com
Set-Cookie: owip=81.134.95.217; expires=Mon, 13-Sep-2004 10:48:38 GMT; path=/;
domain=.outwar.com
Location: http://www.outwar.com/members.php
Transfer-Encoding: chunked
Content-Type: text/html
If I then load (for instance) http://www.outwar.com/pointstore.php the file
says that I must be logged into the account to view this page, even though
I've given the info via the cookies, I assume.
A friend of mine suggested looking at
http://www.garshol.priv.no/download/text/http-tut.html and working out how to
add the cookie info into the request header, but I dunno what I am doing :-)
Note: Although I know it isn't anything to do with it, I even tried -H...and I
also tried -L to set the location but it kept on telling me that it was
ignoring trailing garbage :-)
Another thing I tried was editing the line 'curl -b "name=Daniel"
www.sillypage.com' to use the cookies received previously (I took them from
the cookies outputted with --dump-header) but I'm not sure how to format it
for multiple cookies, and IIRC I used ; between each one.
Received on 2004-09-06