Accept Cookies in Python

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

How can I accept cookies in a python script?

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 12:17

    I believe you mean having a Python script that tries to speak HTTP. I suggest you to use a high-level library that handles cookies automatically. pycurl, mechanize, twill - you choose.

    For Nikhil Chelliah:

    I don't see what's not clear here.

    Accepting a cookie happens client-side. The server can set a cookie.

提交回复
热议问题