Skip to content

Commit 8da79e7

Browse files
committed
updating README and fixing typo
1 parent 217b436 commit 8da79e7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,16 @@ $response = Unirest\Request::get("http://mockbin.com/request", null, null, "user
157157

158158
**This has been deprecated, and will be completely removed in `v.3.0.0` please use the `Unirest\Request::auth()` method instead**
159159

160+
### Cookies
161+
162+
Set a cookie file path for enabling cookie reading and storing cookies across multiple sequence of requests.
163+
164+
```php
165+
Unirest\Request::cookieFile($cookieFile)
166+
```
167+
168+
`$cookieFile` must be a correct path with write permission.
169+
160170
### Request Object
161171

162172
```php

src/Unirest/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ public static function setMashapeKey($key)
106106
/**
107107
* Set a coockie file path for enabling coockie handling
108108
*
109-
* $cookieFile must be a correct path with permission to write to them
109+
* $cookieFile must be a correct path with write permission
110110
*
111-
* @param string $cookieFile - path to file for saving coockie
111+
* @param string $cookieFile - path to file for saving cookie
112112
*/
113113
public static function cookieFile($cookieFile)
114114
{

0 commit comments

Comments
 (0)