【原创】postman模拟ajax请求

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,之后继续测试即可。

点赞

发表回复

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