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

Source: Internet
Author: User
Keywords raw and binary file form-data x-www-form-urlencoded



1. Form-data:



Is the multipart/form-data in the HTTP request, which will process the form into a single message, labeled as a unit, separated by a delimiter. You can upload a key-value pair or upload a file. When the uploaded field is a file, there will be content-type to the table name file type; content-disposition, which is used to describe some information about the field;



Because there is boundary isolation, so multipart/form-data can upload files, you can also upload key value pairs, it takes the method of key-value pairs, so you can upload multiple files.















2. x-www-form-urlencoded:



Is application/x-www-from-urlencoded, the data in the form will be converted to a key-value pair, for example, Name=java&age = 23












3. Raw



can upload text in any format, you can upload texts, JSON, XML, HTML, 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, can only upload one file 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


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

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.