php[world] 2017

Voting

Please answer this simple SPAM challenge: six minus four?
(Example: nine)

The Note You're Voting On

sam at bigwig dot net
13 years ago
[ 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.

<< Back to user notes page

To Top