The difference between form-data, x-www-form-urlencoded, raw and binary in postman

Source: Internet
Author: User

1, Form-data: is the HTTP request in the Multipart/form-data, it will be the data processing of the form a message, labeled as a unit, separated by separators. You can upload a key-value pair or upload a file. When the uploaded field is a file, there will be content-type to describe the file type; content-disposition, which is used to describe some information about the field, and because of boundary isolation, Multipart/form-data can upload files. You can also upload key-value pairs, which use key-value pairs, so you can upload multiple files.

2, x-www-form-urlencoded: is application/x-www-from-urlencoded, will convert the data in the form to a key value pair, for example, Name=python &age = 18

3, Raw: can upload any format of text, you can upload a text, JSON, XML, HTML, JavaScript, etc.

4, Binary: equivalent to content-type:application/octet-stream, from the literal meaning, can only upload binary data, usually used to upload files, because there is no key value, so, Only one file can be uploaded at a time.

The difference between Multipart/form-data and x-www-form-urlencoded

Multipart/form-data: can upload files and other binary data, you can also upload form key value pairs, but the final will be converted into a message;

X-www-form-urlencoded: Only key-value pairs can be uploaded, and key-value pairs are spaced apart.

The difference between form-data, x-www-form-urlencoded, raw and binary in postman

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.