Home  |  Linux  | Mysql  | PHP  | XML
From:Anonymous@osu1.php.net Date:Mon Oct  6 03:00:00 2008
Subject:note 86154 added to function.get-headers
Regarding Radon8472's code immediately below; since the response code always appears in the same place (just after the HTTP protocol and version), that's the only place where the response code needs to be looked for. The code could be simplified by parsing the first line separately from the remaining headers.

Incidentally, 305 and 307 responses should also result in redirects.
----
Server IP: 203.89.181.186
Probable Submitter: 114.134.161.9
----
Manual Page -- http://www.php.net/manual/en/function.get-headers.php
Edit        -- https://master.php.net/note/edit/86154
Del: integrated  -- https://master.php.net/note/delete/86154/integrated
Del: useless     -- https://master.php.net/note/delete/86154/useless
Del: bad code    -- https://master.php.net/note/delete/86154/bad+code
Del: spam        -- https://master.php.net/note/delete/86154/spam
Del: non-english -- https://master.php.net/note/delete/86154/non-english
Del: in docs     -- https://master.php.net/note/delete/86154/in+docs
Del: other reasons-- https://master.php.net/note/delete/86154
Reject      -- https://master.php.net/note/reject/86154
Search      -- https://master.php.net/manage/user-notes.php

Navigate in group php.notes at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants