note 81775 added to function.fsockopen

From: Date: Thu, 13 Mar 2008 05:56:57 +0000
Subject: note 81775 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-136998@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 69.181.152.127 ---- Manual Page -- http://www.php.net/manual/en/function.fsockopen.php Edit -- https://master.php.net/note/edit/81775 Del: integrated -- https://master.php.net/note/delete/81775/integrated Del: useless -- https://master.php.net/note/delete/81775/useless Del: bad code -- https://master.php.net/note/delete/81775/bad+code Del: spam -- https://master.php.net/note/delete/81775/spam Del: non-english -- https://master.php.net/note/delete/81775/non-english Del: in docs -- https://master.php.net/note/delete/81775/in+docs Del: other reasons-- https://master.php.net/note/delete/81775 Reject -- https://master.php.net/note/reject/81775 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136998) next »