当前位置:网站首页>Postman imports curl, exports curl, and exports corresponding language codes
Postman imports curl, exports curl, and exports corresponding language codes
2022-07-26 04:22:00 【Bug Commander】
1、postman Import curl
Click on the top left 「import」 Button , In the pop-up window, select 「Raw text」, Enter what you want to import curl after , Click on 「continue」 Button

Then click on the bottom right corner of the pop-up window 「import」 Button ,curl The request will be automatically parsed as http Request the .


If the upper left corner is not found 「import」 Button , You can click... On the navigation bar 「file」, The drop-down list also has 「file」 Function entry .
2、postman take http Request export as curl
If you want to http Request export as curl command , You can click on the 「code」 link ,

If you search online 「postman take http Request export as curl」, Basically, blogs let you find this 「code」 Button , however postman Version or operating system version , Anyway, my mac The computer does not have the 「code」 link , Instead, there is a 「</>」 Icon , Click this icon to reach and click above 「code」 Link the same effect .

Select 「curl」

Then it is generated curl command , Select all to copy or click on the right 「 Copy 」 Icons can be copied , Then you can put this curl Share it with others or run it on the console .

3、 Import into the corresponding language code
Or click 「code」 Link or on the right 「</>」 Icon , I only have 「</>」 Icon , So click this icon

Select the language version you want to import from the list below , For example, I want to export it here as python Language use requests Library http Code , So I chose 「Python - Request」

Then the code is generated , An application scenario of this method is that the request result of the script written by yourself is wrong , however postman The request result of is correct , At this time, it can be exported into the code of the corresponding language , What's wrong with comparing your own code , Soon we will find out the problem .

4、 preservation http request
If we want to save a request and use it later , We can click 「Save」 Button , After selecting the saved folder , Click on 「save」 Button

You can see that there is an additional set just created on the left , There are only 「 Baidu 」 This request

Reference resources :postman The interface test 10_ Import curl Request interface
边栏推荐
- 【二叉树】二叉树中的最长交错路径
- Dijikstra (preprocessing first) +dfs, relocation truncated to fit
- APISIX 在 API 和微服务领域的探索
- VM虚拟机 没有未桥接的主机网络适配器 无法还原默认配置
- How to choose the key words of the thesis?
- Acwing刷题
- Acwing_ 12. Find a specific solution for the knapsack problem_ dp
- What format should be adopted when the references are foreign documents?
- Li Kou daily question - day 42 -661. Picture smoother
- Under the high debt of Red Star Macalline, is it eyeing new energy?
猜你喜欢

力扣每日一题-第42天-661. 图片平滑器

综合评价与决策方法

荐书丨《教育心理学》:送给明日教师的一本书~

1. Mx6u system migration-6-uboot graphical configuration

Huawei executives talk about the 35 year old crisis. How can programmers overcome the worry of age?

建设面向青少年的创客教育实验室

What are the consequences and problems of computer system restoration

Retail chain store cashier system source code management commodity classification function logic sharing

How to transfer English documents to Chinese?
Yuansaka Lin wallpaper
随机推荐
egg-sequelize JS编写
软模拟光栅化渲染器
dijango学习
How to write the summary? (including 7 easily ignored precautions and a summary of common sentence patterns in 80% of review articles)
RTSP/Onvif协议视频平台EasyNVR服务一键升级功能的使用教程
Comparison of the relationship between the number of partitions and the number of reducetask in MapReduce
MySQL usage
How to write the abbreviation of the thesis?
远坂凛壁纸
Design and implementation of smart campus applet based on cloud development
Firewall command simple operation
The era of smart clothes has come. Zhinar invites you to discuss swords in Yangcheng. Guangya Exhibition is waiting for you on August 4
How mantium uses deepspeed to implement low latency gpt-j reasoning on Amazon sagemaker
How does win11 change the power mode? Win11 method of changing power mode
荐书 |《学者的术与道》:写论文是门手艺
生活相关——减少期待,更快乐
生活相关——一个华科研究生导师的肺腑之言(主要适用于理工科)
Dijango learning
规则引擎Drools的使用
Scroll view pull-down refresh and pull-up load (bottom)