Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
alessioalex committed Nov 12, 2011
1 parent 6c22041 commit 3db7f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,10 @@ request('http://www.google.com', function () {
})
```
OR

```javascript
var j = request.jar()
var cookie = request.cookie('sid=LsoJ7tV9wfwz2VkE9lxC4EqU.%2BXxV0F9i1hfCMb4uNKZTpAUJLTwlf57FewvHne%2BAGVI; path=/; expires=Sun, 23 Nov 2011 16:50:21 GMT; httpOnly')
var cookie = request.cookie('your_cookie_here')
j.add(cookie)
request(url: 'http://www.google.com', jar: j, function () {
request('http://images.google.com')
Expand Down

0 comments on commit 3db7f7d

Please sign in to comment.