I'm looking for a Node.js module which mimics browser cookie management.
For example when specific server response contains set-cookie
, it saves cookie in local http contexts and then sets it to all futher requests to that specific server.
In other word, i need something which acts like a browser, but without dom rendering and on Node side.
You might want to have a look at PhantomJS, it's a "Full web stack, no browser required".
It can run headless and there's github/sgentle/phantomjs-node for usage with node.