当前位置:网站首页>How postman tests interfaces that require login

How postman tests interfaces that require login

2022-06-26 00:00:00 Hadoop_ Liang

postman How to test the interface to be logged in

Two big steps : 1. obtain Cookie Medium JSESSIONID  2.postman Send an analog Cookie Authentication request

 

1. obtain Cookie Medium JSESSIONID

Write the interface --> Start project --> Log in with a browser --> Press F12( perhaps Ctrl+Shift+I)--> Click on Application Get Cookie Medium JSESSIONID

2. use postman Send an analog Cookie Authentication request

Before sending the request , Set up Headers

Cookie The value of is JSESSIONID

 

 

 

Reference resources :https://blog.csdn.net/qq_41570658/article/details/90671037

 

complete ,enjoy it!

原网站

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