XHTML Validation - Using CURL/HTTP HEADERS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cristiano
Forum Newbie
Posts: 18
Joined: Tue Jul 01, 2008 1:44 am

XHTML Validation - Using CURL/HTTP HEADERS

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: XHTML Validation - Using CURL/HTTP HEADERS

Post by John Cartwright »

Code: Select all

print_r(get_headers('http://validator.w3.org/docs/api.html#http_headers', 1));
8)
cristiano
Forum Newbie
Posts: 18
Joined: Tue Jul 01, 2008 1:44 am

Re: XHTML Validation - Using CURL/HTTP HEADERS

Post by cristiano »

Thanks for your help!
Post Reply