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
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.