Page 1 of 1

XHTML Validation - Using CURL/HTTP HEADERS

Posted: Tue Dec 30, 2008 12:21 pm
by cristiano
Hello all,

I'm trying to read the Http Headers as mentioned in this link here.

http://validator.w3.org/docs/api.html#http_headers

I want to know how it is possible to check the headers with php.

Thanks.

Re: XHTML Validation - Using CURL/HTTP HEADERS

Posted: Tue Dec 30, 2008 12:24 pm
by John Cartwright

Code: Select all

print_r(get_headers('http://validator.w3.org/docs/api.html#http_headers', 1));
8)

Re: XHTML Validation - Using CURL/HTTP HEADERS

Posted: Tue Dec 30, 2008 2:02 pm
by cristiano
Thanks for your help!