mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Merge pull request #56 from zborboa-google/patch-3
Add CURLFile example to README
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user