postman模拟登录
时间: 2023-10-15 15:26:39 浏览: 137
在使用Postman模拟登录时,首先需要获取登录请求的接口,比如"http://www.miaopai.com/cu/login"。然后,通过在浏览器中进行登录,查看网页加载数据并找到sessionId,即服务器用于保持会话状态的标识符。接下来,在Postman中输入接口地址和参数,并在Headers中添加Cookie参数,其中值为sessionId,以保持登录状态。最后,点击Send发送请求即可模拟登录。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【CURL】模拟登录网站并获取用户信息](https://blog.csdn.net/weixin_33919941/article/details/90324666)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [PostMan请求接口(模拟登陆状态)](https://blog.csdn.net/xiaolong2230/article/details/84875755)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文