Solution to do submit-for-validation to W3C Validator in PHP?

samedre

New Member
To use the W3C Validator your (i.e. beta-) website normally has to be online which I'd rather avoid. Or use the direct input method. Say hello to continuous copy & paste.My Idea:The "direct input methods" submits the input as a form (no surprise here).In other words: The actual validation-page receives a POST request.So: Could I make a link (i.e. in my standard page footer) that leads to a local submitForValidation.php (rather than the regular linking to validator.w3.org)Within that php file I shall...
  • grab the Referer-URL it just came from (yes, within PHP 'curling' the localhost server...)
  • submit that as the body of a POST request to the W3C page: http://validator.w3.org/check
Is that feasible? Someone has done this solution?Frank
 
Back
Top