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

Re: Correct value of parameter uploaded_file

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Thu, 13 Aug 2009 18:54:30 +0300
To: www-validator@w3.org
Message-Id: <200908131854.30685.ville.skytta@iki.fi>
On Wednesday 12 August 2009, danijank@uni-koblenz.de wrote:

> I looked for help in the internet for several hours, but I didn't know
> where the mistake is. What do I have to write as value of uploaded_file?

The request format is documented at http://validator.w3.org/docs/api.html

uploaded_file contains the document to be validated.  Don't add it to the URL, 
add a part to your multipart/form-data POST request element with 
name="uploaded_file", for example something like:

Content-Disposition: form-data; name="uploaded_file"; filename="foo.html"
Content-Type: text/html; charset=UTF-8

[contents of the HTML doc go here]
Received on Thursday, 13 August 2009 15:55:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:14 UTC