1、form-data:
Http request is multipart / form-Data , it will form a message data processing is to label cells, separated by delimiters. Either upload key-value pairs, you can also upload files. When the file is uploaded field, Content-Type would be the type of documentation; content-disposition, to illustrate some of the information fields;
Because of the isolation boundary, the multipart / form-data may be uploaded files may be uploaded to the key, it uses the key to the embodiment, a plurality of files can be uploaded.
2、x-www-form-urlencoded:
Is file application / X-WWW-from-urlencoded , the data will be converted in the form of key-value pairs, such as, name = the Java & Age = 23 is
3、raw
Can upload any format of text, you can upload text, json, xml, html, etc.
4、binary
Equivalent to Content-Type: the Application / OCTET-Stream , from the literal meaning of that, you can only upload binary data, typically used to upload the file, because there is no key, so only upload one file.
multipart / form-data and x-www-form-urlencoded difference
multipart / form-data: uploaded files may be binary data can also upload form key-value pairs, but will eventually be converted to a message;
x-www-form-urlencoded: only upload key-value pairs, and key-value pairs are spaced apart.