Skip to content

Commit 44a5322

Browse files
committed
Fix php-curl-class#481: Improve the compressed transfer example
1 parent fc49b82 commit 44a5322

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ $curl->delete('https://api.example.com/user/', array(
128128
```
129129

130130
```php
131-
// Enable gzip compression and download a file.
131+
// Enable all supported encoding types and download a file.
132132
$curl = new Curl();
133-
$curl->setOpt(CURLOPT_ENCODING , 'gzip');
134-
$curl->download('https://www.example.com/image.png', '/tmp/myimage.png');
133+
$curl->setOpt(CURLOPT_ENCODING , '');
134+
$curl->download('https://www.example.com/file.bin', '/tmp/myfile.bin');
135135
```
136136

137137
```php

0 commit comments

Comments
 (0)