I\'ve got a node.js Connect server that checks the request\'s cookies. To test it within node, I need a way to write a client request and attach a cookie to it. I understa
You can do that using Requestify, a very simple and cool HTTP client I wrote for nodeJS, it support easy use of cookies and it also supports caching.
To perform a request with a cookie attached just do the following:
var requestify = require('requestify');
requestify.post('http://google.com', {}, {
cookies: {
sessionCookie: 'session-cookie-data'
}
});