multi-part / form data ,
The note. Please refer to RFC2388 for more information on file downloads , including backward compatibility issues, the relationship between "multipart / form-data" and other types of content, performance issues, etc.
Please refer to the application for information on security issues for forms.
The content type "application / x-www-form-urlencoded" is inefficient for sending large amounts of binary data or text containing non-ASCII characters. The content type "multipart / form-data" should be used to submit forms that contain files, non-ASCII data, and binary data.
The content type "multipart / form-data" follows the rules of all composite MIME data streams described in RFC2045 . The definition of "multipart / form-data" is available in the [IANA] registry.
The "multipart / form-data" message contains a series of parts, each of which represents a successful control. Parts are sent to the processing agent in the same order in which the corresponding controls are displayed in the document flow. Part boundaries should not be found in any of the data; how this is done is beyond the scope of this specification.
As with all composite MIME types, each part has an optional "Content-Type" header, which defaults to "text / plain". User agents must provide a "Content-Type" header followed by a "charset" parameter.
application / x-www-form-urlencoded
This is the default content type. Forms submitted with this content type should be encoded as follows:
The names and values โโof the controls are escaped. +', and then reserved characters are escaped as described in [RFC1738], section 2.2: Non-alphanumeric characters are replaced by " +', and then reserved characters are escaped as described in [RFC1738], section 2.2: Non-alphanumeric characters are replaced by % HH', a percent sign and two hexadecimal digits representing the ASCII character code. Line +', and then reserved characters are escaped as described in [RFC1738], section 2.2: Non-alphanumeric characters are replaced by represented in the form of "CR LF" pairs (i.e. %0D%0A'). The control names/values are listed in the order they appear in the document. The name is separated from the value by %0D%0A'). The control names/values are listed in the order they appear in the document. The name is separated from the value by %0D%0A'). The control names/values are listed in the order they appear in the document. The name is separated from the value by %0D%0A'). The control names/values are listed in the order they appear in the document. The name is separated from the value by %0D%0A'). The control names/values are listed in the order they appear in the document. The name is separated from the value by = ', and the name / value pairs are separated by the sign' & '.
application/x-www-form-urlencoded that the body of the HTTP message sent to the server, in fact, is one giant query string - name / value pairs are separated by an ampersand (&), and names are separated from values โโby an equal sign, an equal sign An example of this can be:
MyVariableOne=ValueOne&MyVariableTwo=ValueTwo
The content type "application / x-www-form-urlencoded" is inefficient for sending large amounts of binary data or text containing non-ASCII characters. The content type "multipart / form-data" should be used to submit forms that contain files, non-ASCII data, and binary data.