I'm trying to make a GET with a Cookie but it's not working in my node.js program. However, the GET works fine from POSTman in chrome. Why could this be? The error I get back is 'Access denied for user anonymous'. I believe that's because this particular API expects a Cookie with session_id=xxxxxxx which I am trying to pass like this:
rest.get(<theurl>, {'headers':{'Cookie':<session_id=xxxx>}}.on('complete'.....
The only thing I can think of is the session_id=xxx is not being correctly put into the JSON object as a variable. But I'm new to node and javascript so I don't know how to debug other than putting console.log() all over the place. Any ideas out there?