switch to using curl_setopt_array for better readability, added utility methods Fixes #66

This commit is contained in:
Ahmad Nassri
2015-03-01 02:48:16 -05:00
parent 139b58019c
commit 530905c7c9
2 changed files with 58 additions and 29 deletions

View File

@@ -283,6 +283,16 @@ Unirest\Request::verifyPeer(false); // Disables SSL cert validation
By default is `true`.
#### Utility Methods
```php
// alias for `curl_getinfo`
Unirest\Request::getInfo()
// returns internal cURL handle
Unirest\Request::getCurlHandle()
```
----
Made with ♥ from the [Mashape][mashape-url] team