note 86153 deleted from function.get-headers by danbrown
| From: | danbrown@php.net | Date: | Mon, 06 Oct 2008 17:12:55 +0000 |
| Subject: | note 86153 deleted from function.get-headers by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145094@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. And should be looked for: looking to see if it appears anywhere in any
header is going to turn up all sorts of false positives.
Incidentally, 305 and 307 responses should also result in redirects.