Alex Rivera | Logout

Accept Cookies in Python

Asked 2009-02-08T14:09:04.790
11

How can I accept cookies in a python script?

Edit
Report

1 Answer

1

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).

answered 2009-02-08T16:24:59.493

Your Answer