Re: need help with cookies
| From: | Curt Zirzow | Date: | Mon, 18 Aug 2003 21:57:49 +0000 |
| Subject: | Re: need help with cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159954@lists.php.net to get a copy of this message | ||
* Thus wrote Dan Anderson (dan@mathjunkies.com):
> I need to grab cookies from a web page and pass those cookies back to
> the web page when needed. I downloaded the cURL program and was playing
> with it, but don't understand how cURL functions correlate into the PHP
> equivalents.
>
> How would I strip the cookies from a web page, and send cookies?
> More importantly, if I have cookies from domain x which provides y
> cookies and go to a second web page from domain x which provides z
> cookies, if I go to another web page on domain x should I concatanate
> the y and z cookies, or just send the last z cookies recieved?
Send back all cookies that follow the rules here:
http://wp.netscape.com/newsref/std/cookie_spec.html
That is of course you want to accept the cookie.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."