verifying a URL submitted [solved]
Posted: Fri Nov 11, 2011 11:38 pm
I want to verify a URL submitted by users to make sure they didn't link to a missing page or have a typo in the URL.
I can use get_headers() for this.
The problem is redirections will send multiple headers. Will the 200 OK response always be the last status header sent in the output from get_headers() ? Also, will the status always be 200 OK or will there be other successful header types?
I can use get_headers() for this.
The problem is redirections will send multiple headers. Will the 200 OK response always be the last status header sent in the output from get_headers() ? Also, will the status always be 200 OK or will there be other successful header types?