Merge pull request #56 from zborboa-google/patch-3

Add CURLFile example to README
This commit is contained in:
Zach Borboa
2014-05-20 19:53:23 -07:00
+7
View File
@@ -73,6 +73,13 @@ $curl->patch('http://api.example.com/profile/', array(
));
```
```php
$curl = new Curl();
$curl->patch('http://api.example.com/profile/', array(
'image' => new CURLFile('path/to/file.jpg'),
));
```
```php
$curl = new Curl();
$curl->delete('http://api.example.com/user/', array(