From 8da79e78987a3d1abf6ccdd718a7e9295ed89211 Mon Sep 17 00:00:00 2001 From: Ahmad Nassri Date: Thu, 2 Apr 2015 14:22:32 -0400 Subject: [PATCH] updating README and fixing typo --- README.md | 10 ++++++++++ src/Unirest/Request.php | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e5d1723..0d2e55a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/Unirest/Request.php b/src/Unirest/Request.php index 263549e..b95bb89 100644 --- a/src/Unirest/Request.php +++ b/src/Unirest/Request.php @@ -106,9 +106,9 @@ class Request /** * 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) {