Releases: Athlon1600/php-curl-client
v1.2.0
v1.1.3
- added ability to change where cookies are stored via
setStorageDirectory($path)
method. httpbin.org/redirect-to
endpoint is broken: postmanlabs/httpbin#617. That broke some of our test cases. Workarounds had to be added.
v1.1.2
- Fixed bug where the custom cURL options passed to the
request
method weren't properly overriding default options. + operator does not work the same way asarray_merge
specifically regarding order:
If an array key exists in both arrays, then the element from the first array will be used and the matching key's element from the second array will be ignored.
https://www.php.net/manual/en/function.array-merge.php
Therefore default_options + custom_options
had to be changed to: custom_options + default_options
v1.1.1
- redirects after POST request are now being handled properly
https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html
When following a Location:, the 3xx response code that redirected it also dictates which request method it will use in the subsequent request: For 301, 302 and 303 responses libcurl will switch method from POST to GET unless CURLOPT_POSTREDIR instructs libcurl otherwise. All other 3xx codes will make libcurl send the same method again.
the switch does not happen if CURLOPT_CUSTOMREQUEST
option is set. Thanks to:
Kong/insomnia#227
v1.1.0
- curl_getinfo() is now in its own CurlInfo class.