W3C home > Mailing lists > Public > www-validator@w3.org > April 2001

Re: Direct submit of local file to validate

From: Terje Bless <link@tss.no>
Date: Fri, 13 Apr 2001 23:19:15 +0200
To: dhulse@macromedia.com
cc: www-validator@w3.org
Message-ID: <20010413232345-b01010701-b378d7ad@>
On 13.04.01 at 09:35, dhulse@macromedia.com wrote:

>Rather than using the form page in
>http://validator.w3.org/file-upload.html to submit a local file for
>validation, is it possible to get the direct URL with the correct
>parameters for a direct submission?
>E.g., if I am using an HTML editor that has scripting/macro capabilities,
>I would like to create a script to call the validator, passing in the
>currently loaded file to validate.

Just create a suitable multipart/form-data MIME object with your document
in a part named "file_upload" -- and any other options as wanted -- and
HTTP POST it to <URL:http://validator.w3.org/check>.
Received on Friday, 13 April 2001 17:23:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:29 UTC