inclusive-design / AChecker

Automated interactive Web content accessibility checker.
https://achecker.ca
GNU General Public License v2.0
69 stars 61 forks source link

Using CURL to avoid 403 response from the w3c validator server #49

Closed pierlauro closed 10 years ago

pierlauro commented 10 years ago

Using file_get_contents the W3C server returns 403: "Warning: file_get_contents(http://validator.w3.org/check?uri=http://www.google.it): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden /...path.../"

cindyli commented 10 years ago

Thanks for taking the initiative to work on this. Your solution looks and works pretty well. My only suggestion is, don't mixed up spaces and tabs in the code. Tabs seem to be primarily used in the script you modified. There are some spaces sneak in at other spots, which should be fixed someday as well.

pierlauro commented 10 years ago

I'm sorry for the glitch, I’ve already fixed it!