Postman 工具模拟Ajax请求

1.请求方式 post

2.headers设置:X-Requested-With:XMLHttpRequest    代码判断是以此为依据的

                             (Content-Type:application/x-www-form-urlencoded)

3.body中可以写请求参数,不过要设置编码方式(我没有传值)

猜你喜欢

转载自www.cnblogs.com/wayne173/p/9591486.html