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或者抓包工具检查和页面返回的内容是否一样

相关推荐
摸摸芋3 天前
postman(ai篇)
测试工具·postman
小小尚@9 天前
AE脚本-AE Actions v1.1.8 操作动作记录器
开发语言·前端·javascript·jupyter·postman
Pluchon16 天前
Java个人综合项目——萌部落社区V2.0
java·python·spring·spring cloud·postman·idea
昨夜星河入梦来18 天前
postman接口测试报错503的解决方法
开发语言·postman
冷凝娇20 天前
【Postman】2026总结
测试工具·postman
降临-max23 天前
Postman----接口自动化
软件测试·功能测试·自动化·postman
测试秃头怪23 天前
postman接口测试详解
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
减瓦24 天前
告别Postman——用VSCode优雅地发起Http请求
vscode·http·postman
Chloeis Syntax1 个月前
JAVAEE初阶 --- 构造HTTP请求
网络·网络协议·http·postman
胡渠洋1 个月前
postman学习
学习·测试工具·postman