curl-and-php
Re: Getting and passing a cookie...
Date: Mon, 17 Feb 2003 17:00:25 -0800
We are now able to get the cookies written to the file. We will probably have everything done by this evening. When I am done, I can post it to the PHP and cURL sites I know of. A lot of people wrote to give me advice, but never just offered raw code. I can give that up to everyone so they don't have to go through this process like I did. Thank you for your help,
Aaron
----- Original Message -----
From: Daniel Stenberg
To: curl and php list
Sent: Monday, February 17, 2003 3:18 PM
Subject: Re: Getting and passing a cookie...
On Mon, 17 Feb 2003, Paperstuff.com wrote:
> Here is the header that has the cookies. Here you see the cookies, because
> I put USERNAME and PASSWORD - which obviously aren't my real ones, so it
> gave the different header. If I put my actual username and password in, it
> gives the much smaller header.
Yes, but then this is hardly a step closer, is it?
And a suggestion: the headers are line-oriented. When you show them all
messed up in one huge chunk they're very hard to read and understand. It is a
lot better and easier to read if you make sure to maintain the linefeeds
properly.
Let me guess: when you login with a bad user name, it puts you back to the
orignal login page? And when doing so, it gives you a set of cookies it
requires when you login using the proper name. But, if you only login using
your proper name and password, it considers the login OK but fails anyway
since you don't pass along any cookies.
I may of course be completely wrong.
--
Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-18