POSTMAN模拟ajax:
1.选择提交模式:如POST
2.headers增加参数:
Content-Type:application/x-www-form-urlencoded
X-Requested-With:xmlhttprequest
3.在body中选择x-www-form-urlencoded项,参数为模拟AJAX提交的内容
跳过登录:
测试过程中需要登录,可以先在浏览器中登录,之后获取cookie,在postman的headers中填入cookie,之后继续测试即可。
POSTMAN模拟ajax:
1.选择提交模式:如POST
2.headers增加参数:
Content-Type:application/x-www-form-urlencoded
X-Requested-With:xmlhttprequest
3.在body中选择x-www-form-urlencoded项,参数为模拟AJAX提交的内容
跳过登录:
测试过程中需要登录,可以先在浏览器中登录,之后获取cookie,在postman的headers中填入cookie,之后继续测试即可。