Re: Correct value of parameter uploaded_file

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:

--boundary-here
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