W3C home > Mailing lists > Public > www-validator@w3.org > August 2012

Re: How To Validate a HTML file using W3c API

From: David Dorward <david@dorward.me.uk>
Date: Wed, 22 Aug 2012 14:49:08 +0100
Cc: www-validator@w3.org
Message-Id: <CE0F978F-FB51-4016-841A-359F2FEB9BDB@dorward.me.uk>
To: Harshit Oberoi <oberoi.harshit@gmail.com>

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
Received on Wednesday, 22 August 2012 13:49:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:06 UTC