Summary
关于 Python requests 请求调试
Python requests - print entire http request (raw)?
An even better idea is to use the requests_toolbelt library, which can dump out both requests and responses as strings for you to print to the console. It handles all the tricky cases with files and encodings which the above solution does not handle well.
|
|