Skip to content

Commit

Permalink
updating README and fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Apr 2, 2015
1 parent 217b436 commit 8da79e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ $response = Unirest\Request::get("http://mockbin.com/request", null, null, "user

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

### Cookies

Set a cookie file path for enabling cookie reading and storing cookies across multiple sequence of requests.

```php
Unirest\Request::cookieFile($cookieFile)
```

`$cookieFile` must be a correct path with write permission.

### Request Object

```php
Expand Down
4 changes: 2 additions & 2 deletions src/Unirest/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public static function setMashapeKey($key)
/**
* Set a coockie file path for enabling coockie handling
*
* $cookieFile must be a correct path with permission to write to them
* $cookieFile must be a correct path with write permission
*
* @param string $cookieFile - path to file for saving coockie
* @param string $cookieFile - path to file for saving cookie
*/
public static function cookieFile($cookieFile)
{
Expand Down

0 comments on commit 8da79e7

Please sign in to comment.