Skip to content

Commit fb8ef3e

Browse files
committed
Update README.md
1 parent 36c4446 commit fb8ef3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use PHPCurl\CurlHttp\HttpClient;
1616

1717
$http = new HttpClient();
1818

19-
$http->setOptions(array(
19+
$http->setOptions([
2020
CURLOPT_FOLLOWLOCATION => false, // Any arbitrary curl options you want
21-
));
21+
]);
2222

2323
$response = $http->post('http://example.com/?a=b', 'my post data', ['User-Agent: My php crawler']);
2424
// Supported: get(), post(), head(), post(), put(), delete(), custom methods

0 commit comments

Comments
 (0)