Re: How To Validate a HTML file using W3c API

On 22 Aug 2012, at 10:53, Harshit Oberoi <oberoi.harshit@gmail.com> wrote:
> 
> simmilarly to update file an uploaded_file parameter is there , but implementing this in above url : http://validator.w3.org/check?uploaded_file=C:\Users\harshit\Desktop\xyz\10Most.htm&doctype=HTML5&output=soap12 

In general, giving any web application the path of a file on your hard disk isn't going to do much good. Your hard disk almost certainly isn't readable from the WWW, and thanks to NAT and other systems which mask the originating IP the server has little chance of being able to reach your machine (and then it would have to guess the protocol).

See the documentation: http://validator.w3.org/docs/api.html

uploaded_file	The document to validate, POSTed as multipart/form-data


You have to use a POST request and include the file itself in the request.

-- 
David Dorward
http://dorward.me.uk

Received on Wednesday, 22 August 2012 13:49:46 UTC