password
URL
type
status
date
slug
summary
tags
category
icon
标签
是否汉化
最近在给数据平台做接口自动化,除了调用统一登录接口token,还需结合业务接口生成相对应的cookie, 在此记录下
- 业务接口需要使用的header
- allow_redirects=False 防止链接重定向
- cookie in response.cookies.items():循环取cookie的值
- cookie获取的两种方法
离开乏味的皮囊,自由的灵魂在路上
- Name: Alan Hsu
- Tag: 随感、技术、经验、旅行、推荐、生活、音乐、电影 etc.
- Email:xulanzhong521gmail.com
- Twitter:@AlanHsu521
- Telegram:@AlanHsu521
- WeChat: Alan_Hsu_521
- Github: https://github.com/xsoway/
![notion image](https://cdn.jsdelivr.net/gh/xsoway/xmylog_imgs@main/wechat.jpeg?t=eceb0f4a-7749-4d4a-9519-29e99fbd236f)
![notion image](https://cdn.jsdelivr.net/gh/xsoway/xmylog_imgs@main/%E5%85%AC%E4%BC%97%E5%8F%B7.jpeg?t=e56ccb9f-1ae7-4479-9f8b-b69d533de7bc)
- Author:Alan_Hsu
- URL:https://xmylog.com/article/articles_python_request-cookie
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts