Accept Cookies in Python

后端 未结 6 721
孤城傲影
孤城傲影 2020-12-31 11:43

How can I accept cookies in a python script?

6条回答
  •  温柔的废话
    2020-12-31 12:35

    There's the cookielib library. You can also implement your own cookie storage and policies, the cookies are found in the set-cookie header of the response (Set-Cookie: name=value), then you send the back to a server in one or more Cookie headers in the request (Cookie: name=value).

提交回复
热议问题