抓包安卓 app,发现实际请求的 header 是
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
token: sasasasasasasasasasas
Host: ********:8443
Connection: Keep-Alive
用 requests 模拟,添加上述 header 以后,发现实际发送的请求经过 requests 处理,header 增加了几项(带*的)
*User-Agent: python-requests/2.19.1
*Accept-Encoding: gzip, deflate
*Accept: */*
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: *******:8443
*Content-Length: 0
token: sasasasasasasasasasas
求助怎么完全自定义 requests 的 header,或者删除 header 中的某些项,文档中没找见....