Python Forum
Python cookies - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python cookies (/thread-33197.html)



Python cookies - vj78 - Apr-05-2021

I am trying to set cookies and retrieve them.

How to get and set the cookies? in python.


RE: Python cookies - ndc85430 - Apr-06-2021

Cookies usually go in the HTTP header. Whichever library you're using should have documentation that tells you how to access the headers.


RE: Python cookies - Naheed - Apr-07-2021

It is not that hard to send cookies to browser. These cookies are sent along with HTTP Header.
Please go through the below thread for proper understanding on stack overflow:
questions/4349147/python-create-cookies-and-then-load-a-page-with-the-cookies