I am having a problem with my crawler.
I was able to log in to a web site but when I try to connect to a specific page it was redirecting me back to the login page. After some research I realized that there are some cookies set by javascript that my cookie container didn’t store.
How can I get those cookies programatically?
Just set them on request as any other cookies.
If your question is “how to figure out is JavaScript set any cookies” – no, you can’t generically do it without running complete pages in normal (potentially headless) browser.