Skip to content

Releases: Athlon1600/php-curl-client

v1.2.0

24 Oct 23:24
Compare
Choose a tag to compare
  • makes it compatible with PHP 8.2, fixing #2

v1.1.3

14 Feb 17:13
Compare
Choose a tag to compare
  • 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

08 Oct 02:07
Compare
Choose a tag to compare
  • 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 as array_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

15 May 13:15
Compare
Choose a tag to compare
  • 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

21 Feb 01:15
Compare
Choose a tag to compare
  • curl_getinfo() is now in its own CurlInfo class.

v1.0.0

10 Jan 16:12
Compare
Choose a tag to compare

First stable release.