Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

superagent set cookie

Superagent.post('...').set('Cookie', 'cookieName1=cookieValue1;cookieName2=cookieValue2');

// will be available in node server as
// console.log(req.cookies.cookieName1);
// cookieValue1
 
PREVIOUS NEXT
Tagged: #superagent #set #cookie
ADD COMMENT
Topic
Name
8+6 =