note 35009 modified in wrappers by pollita
| From: | pollita@php.net | Date: | Fri, 15 Aug 2003 14:52:00 +0000 |
| Subject: | note 35009 modified in wrappers by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54202@lists.php.net to get a copy of this message | ||
[ Editor's Note: There is a way to know. All response headers (from both the final responding
server and intermediate redirecters) can be found in $http_response_header or stream_get_meta_data()
as described above. ]
If you open an HTTP url and the server issues a Location style redirect, the redirected contents
will be read but you can't find out that this has happened.
So if you then parse the returned html and try and rationalise relative URLs you could get it wrong.
--was--
If you open an HTTP url and the server issues a Location style redirect, the redirected contents
will be read but you can't find out that this has happened.
So if you then parse the returned html and try and rationalise relative URLs you could get it wrong.
http://www.php.net/manual/en/wrappers.php