当前位置:网站首页>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
边栏推荐
- 红星美凯龙高负债之下,盯上新能源了?
- Acwing_ 12. Find a specific solution for the knapsack problem_ dp
- Matrix and Gauss elimination [matrix multiplication, Gauss elimination, solving linear equations, solving determinants] the most detailed in the whole network, with examples and sister chapters of 130
- Credit card fraud detection based on machine learning
- Huawei issued another global convening order of "genius youth", and some people once gave up their annual salary of 3.6 million to join
- 生活相关——减少期待,更快乐
- Makefile knowledge rearrangement (super detailed)
- Steam科学教育赋予课堂教学的创造力
- Firewall command simple operation
- 理性认知教育机器人寓教于乐的辅助作用
猜你喜欢

Life related - ten years of career experience (turn)
Yuansaka Lin wallpaper

吴恩达机器学习课后习题——逻辑回归

(translation) the button position convention can strengthen the user's usage habits

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

Segger embedded studio cannot find xxx.c or xxx.h file

荐书 |《学者的术与道》:写论文是门手艺

综合评价与决策方法

Acwing brush questions

Sangi diagram of machine learning (for user behavior analysis)
随机推荐
香甜的黄油
dijango学习
远坂凛壁纸
Web Test Method Encyclopedia
Tutorial on using the one click upgrade function of the rtsp/onvif protocol video platform easynvr service
吴恩达机器学习课后习题——线性回归
VM虚拟机 没有未桥接的主机网络适配器 无法还原默认配置
生活相关——减少期待,更快乐
What are the consequences and problems of computer system restoration
雅迪高端之后开始变慢
[oi knowledge] dichotomy, dichotomy concept, integer dichotomy, floating point dichotomy
吴恩达机器学习课后习题——逻辑回归
VM virtual machine has no un bridged host network adapter, unable to restore the default configuration
Life related - less expectation, happier
Solution: runtimeerror: expected object of scalar type int but got scalar type double
1. Mx6u-alpha development board (main frequency and clock configuration experiment)
Small ball and box model, arrangement and combination
【二叉树】二叉树中的最长交错路径
Leetcode:1184. Distance between bus stops -- simple
Integrated architecture of performance and cost: modular architecture