postman 常见使用tips

1.测试https环境下接口

如下图所示,关闭ssl验证即可。

2.测试含session的接口

2.1找到session值

2.2在postman添加session值

把对应的session值放入,保存即可

3.模拟ajax请求

 1)提交模式:POST

 2)Headers增加参数:
 Content-Type    为:application/x-www-form-urlencoded
 X-Requested-With 为:xmlhttprequest

 3)Body选择为:x-www-form-urlencoded,参数为模拟AJAX提交的内容

“postman 常见使用tips”的一个回复

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注