Postman[3] 创建Get和Post请求

1.创建Get请求

以打开百度页面为例

链接:https://www.baidu.com/

步骤:

1.1新建一个Collection
1.2Add Request
1.3填充请求的url
1.4 Send
1.5检查返回结果

注意:这里和我们打开网页看到的页面不一样,是因为缺少请求头(后面补充)

2.创建Post请求

url: https://ug.baidu.com/mcp/pc/pcsearch

2.1新建一个Collection(可以用上面创建的Collection)
2.2Add Request
2.3填充请求的url和参数
2.4Send
2.5检查返回结果

{"invoke_info":{"pos_1":{},"pos_2":{},"pos_3":{}}}

可以用F12或者抓包工具检查和页面返回的内容是否一样

相关推荐
降临-max2 天前
Postman----接口自动化
软件测试·功能测试·自动化·postman
测试秃头怪2 天前
postman接口测试详解
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
减瓦3 天前
告别Postman——用VSCode优雅地发起Http请求
vscode·http·postman
Chloeis Syntax11 天前
JAVAEE初阶 --- 构造HTTP请求
网络·网络协议·http·postman
胡渠洋17 天前
postman学习
学习·测试工具·postman
胡渠洋18 天前
用python实现postman
开发语言·python·postman
啦啦啦!20 天前
AI接口自动化测试的学习
学习·postman
m0_7520356321 天前
postman重新安装后历史接口数据不见了
测试工具·postman