note 81775 deleted from function.fsockopen by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 19:19:48 +0000 |
| Subject: | note 81775 deleted from function.fsockopen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142288@lists.php.net to get a copy of this message | ||
Note Submitter: dan at novapulsar dot com
----
Re:
i found that it was '; ' (that's semicolon followed by a space) that permitted
multiple cookies, not \r\n
i determined this by using charles http proxy, and inspecting the request headers for requests i was
generating.
so the final cookie would header would look like
GET /path/to/script.php
Host: www.domain.com
Cookie: cookie_1=hello; cookie_2=world; cookie_3=bye;\r\n
------------------------------------------------------
corey at detoxservers dot com
02-Sep-2007 12:47
For those of you trying to POST cookies, use the header:
"Cookie: cookiename=cookievalue\r\n";
I haven't tried this for multiple cookies, I would assume you just add another Cookies: line to
your header var.