当前位置:网站首页>Use postman to simulate a request to carry a token

Use postman to simulate a request to carry a token

2022-06-09 06:59:00 yangwenguangywg

Use postman Simulated carrying token Request

background

During team development , Some pages haven't been written yet , But we need information from other pages to complete the development , For example, request parameters of an interface , For example, you need to go to a certain page token

Solution

Use postman, First use postman To simulate login registration and other requests , Get the message token, Then in the browser Console Console settings cookie Medium token, So that each request will carry token, You can access what you need token The page

cookieStore.set(cookie,value)

Grab browser requests

If you want to get information about each request and response , You can install plug-ins in the browser Postman Interceptor 1.1.2

 Insert picture description here

And then configure it , You can go to postman View the request response information for each time

原网站

版权声明
本文为[yangwenguangywg]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/06/202206090650417980.html