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

相关推荐
逆光行16 小时前
奖池派对自动化测试方案与实践报告
python·功能测试·postman
茉莉清茶LG1 天前
postman 登录问题
测试工具·postman
乐于分享的阿乐2 天前
【2026最新】Postman新旧版本下载安装+免登录 保姆级教程
测试工具·lua·postman
wuchen100415 天前
使用Postman测试grpc接口-传参错误的反例
测试工具·postman
wuchen100416 天前
使用Postman测试grpc接口
postman·grpc
川石课堂软件测试19 天前
软件测试|常见面试题整理
数据库·python·jmeter·mysql·appium·postman·prometheus
弹简特20 天前
【精通Postman接口测试-完结】05-Postman通关收官!接口鉴权+接口加密+接口签名+Mock数据构造
测试工具·postman·接口鉴权、接口签名
老神在在00120 天前
博客会话维持方式总结
postman·token·session
Apifox.21 天前
Apifox 近期更新|AI Agent Debugger、A2A Debugger、Postman API 导入、Ask AI 侧边栏对话
前端·人工智能·后端·测试工具·测试用例·postman