request-cookies

Cookie management for the node request libary

request-cookies

Cookie management for node's request library

see tests for examples

CookieJar

Holds cookies

Add a cookie to the cookie jar

  • String|Object data can be a Cookie, json object, or a set-cookie header string

  • String url

  • Object options [optional]

Remove a cookie by name for a given domain. If the key then all cookies for the given domain and path (if given) will be removed. Note: when cookies are added without a path specified the default path is "/" in accordance with http://tools.ietf.org/search/rfc6265#section-5.1.4 - so you should use that for the path param when appropriate.

  • String url

  • String key

Get cookies that match the given properties

  • String url

  • Object options [optional]

Get HTTP Cookie header string

  • String url

  • Object options [optional]

Get cookie jar as a JSON object

  • Object

Cookie

HTTP Cookie

  • String|Object data can be a cookie header string or a json object

Get cookie as a cookie header string

  • String

Set multiple cookie properties at once

  • String|Object data

Get cookie as a JSON object

  • Object