A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Validator.nu Textarea Input: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Obsolete|spec=https://github.com/validator/validator/wiki/Service:-Input:-textarea}}
{{Obsolete|spec=https://github.com/validator/validator/wiki/Service-Input-textarea}}
To use [[Validator.nu Web Service Interface|Validator.nu as a Web service]] by POSTing a text field, the client issues an HTTP request either to <code>https://validator.nu/</code> or <code>https://html5.validator.nu/</code> using the POST method with an <code>multipart/form-data</code> entity body. (<code>application/x-www-form-urlencoded</code> is ''not'' supported.) [[Validator.nu Common Input Parameters|Common parameters]] are encoded as form fields. The document to check is included as the value of a form field called <code>content</code>. The <code>content</code> field must be the last field in the submission.
To use [[Validator.nu Web Service Interface|Validator.nu as a Web service]] by POSTing a text field:
 
* the client issues an HTTP request either to <code>https://validator.nu/</code> or <code>https://html5.validator.nu/</code>
* the request uses the POST method with an <code>multipart/form-data</code> entity body (<code>application/x-www-form-urlencoded</code> is ''not'' supported)
* [[Validator.nu Common Input Parameters|Common parameters]] are encoded as form fields
* the document to check is included as the value of a form field called <code>content</code>.
* <b>the <code>content</code> field must be the last field in the submission.</b>


The request should set the <code>parser</code> parameter explicitly. <code>Content-Type</code> is synthetized by selecting <code>text/html</code> or <code>application/xml</code> depending on the <code>parser</code> value and clamping the  <code>charset</code> MIME type parameter to <code>utf-8</code>).
The request should set the <code>parser</code> parameter explicitly. <code>Content-Type</code> is synthetized by selecting <code>text/html</code> or <code>application/xml</code> depending on the <code>parser</code> value and clamping the  <code>charset</code> MIME type parameter to <code>utf-8</code>).

Latest revision as of 04:35, 29 December 2016

This document is obsolete.

For the current specification, see: https://github.com/validator/validator/wiki/Service-»-Input-»-textarea

To use Validator.nu as a Web service by POSTing a text field:

  • the client issues an HTTP request either to https://validator.nu/ or https://html5.validator.nu/
  • the request uses the POST method with an multipart/form-data entity body (application/x-www-form-urlencoded is not supported)
  • Common parameters are encoded as form fields
  • the document to check is included as the value of a form field called content.
  • the content field must be the last field in the submission.

The request should set the parser parameter explicitly. Content-Type is synthetized by selecting text/html or application/xml depending on the parser value and clamping the charset MIME type parameter to utf-8).

All field values including the document source must decode as UTF-8.

See also