note 86154 deleted from function.get-headers by danbrown
| From: | danbrown@php.net | Date: | Tue, 27 Sep 2011 16:12:39 +0000 |
| Subject: | note 86154 deleted from function.get-headers by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183492@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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.