In distinction Postman form-data, x-www-form-urlencoded of

1、form-data:
multipart / form-data http request, 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.
<ignore_js_op>

 

2、x-www-form-urlencoded:
       application / x-www-from-urlencoded, data in the form are converted to the key-value pairs
<ignore_js_op>

 

3、raw
           Can upload any format of text, you can upload text, json, xml, html, etc.
<ignore_js_op>

 

 
4、binary
         Equivalent to Content-Type: application / octet-stream, you can only upload binary data, typically used to upload the file, because there is no key, so only upload one file.
<ignore_js_op>



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.
More technical information may concern: gzitcast

Guess you like

Origin www.cnblogs.com/heimaguangzhou/p/11670667.html