@NotWegant (Sorry for my English).
When you make a GET request in the response, you will have cookies for this URL. Then you will save them. Is this option not working?
In the browser, all these scripts are executed automatically, if you work with the site via the http-client, then you will have to execute these scripts manually.