Postman - post request data type

1. Data type of post in Postman

There are the following data types in post

1、form-data

2、x-www-form-urlencoded

3、raw

4、binary

2. Postman requests different post data types

from-data

multipart/form-data, which organizes the form data into Key-Value form, and can also upload files. When the uploaded field is a file, there will be content-type to describe the file type; content-disposition, used to describe the field Some information; due to boundary isolation, multipart/form-data can upload both files and key-value pairs. It uses key-value pairs, so multiple files can be uploaded.

normal data

Enter the post request address, select the form-data request type, enter the corresponding parameters, and click Send to send the request.

form-data upload file

Select File format

Click to upload a file and send a request

Here I chose to upload the binary file, and the others are the same.

现在我也找了很多测试的朋友,做了一个分享技术的交流群,共享了很多我们收集的技术文档和视频教程。
如果你不想再体验自学时找不到资源,没人解答问题,坚持几天便放弃的感受
可以加入我们一起交流。而且还有很多在自动化,性能,安全,测试开发等等方面有一定建树的技术大牛
分享他们的经验,还会分享很多直播讲座和技术沙龙
可以免费学习!划重点!开源的!!!
qq群号:110685036

x-www-form-urlencoded

application/x-www-from-urlencoded, convert the data in the form to Key-Value

It can be seen from the returned content whether the data type we need to request is correct.

raw

Data of txt, json xml, and html can be transmitted through raw

xml method

View returned content

json data

After passing the request, we continue to check the returned content and find that the actual data type is also json.

binary

Indicates that only binary data can be uploaded, which is used to upload files. Only 1 data can be uploaded at a time.

To give you a little chestnut, create a binary file on the desktop and save it on the desktop with the suffix .bin format.

Upload the created binary file and view the returned content


Finally, I would like to thank everyone who read my article carefully. Looking at the increase in fans and attention, there is always some courtesy. Although it is not a very valuable thing, if you can use it, you can take it directly!

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are from the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.
 

Insert image description here

 

Guess you like

Origin blog.csdn.net/IT_LanTian/article/details/132885049