S
S
simplecode2013-12-16 15:20:09
Browsers
simplecode, 2013-12-16 15:20:09

How to set a cookie on browser startup?

I am writing a program (Python or C++) that sends an http request to a web server and receives a response with a cookie. (this is done)
Next, in the program, I want to launch a web browser (an external program) and pass the received cookie to it.
That is, subsequent requests to the server will be made by the browser having a cookie.
Is it possible to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hint, 2013-12-16
@simplecode

It is impossible in a simple and universal way. Add a variable to the address (GET). On the server, you can check for the presence of a parameter, set a cookie, and redirect by removing the parameter from the URI.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question