Commit Graph

308 Commits

Author SHA1 Message Date
Zach Borboa 37c605f9e4 Fix #651: Allow passing an indexed array to Curl::setHeaders() 2020-10-30 21:52:43 -07:00
Zach Borboa ab407d6b25 Implement disableTimeout()
Implement Curl::disableTimeout() and MultiCurl::disableTimeout()
2020-05-09 09:19:35 -07:00
Zach Borboa 180273b577 Bump version: 8.7.0 → 8.8.0 2020-04-19 20:39:57 -07:00
Zach Borboa 85c9a1a5e9 Clean up 2020-04-10 19:31:28 -07:00
harry 09006e0e26 Implement setInterface()
Implement Curl::setInterface() and MultiCurl::setInterface()
2020-04-10 12:02:41 +05:30
Zach Borboa 73ec46ed20 Bump version: 8.6.1 → 8.7.0 2020-02-28 21:02:55 -08:00
Zach Borboa 7c93a1b746 Fix use of undefined constant STDERR under certain conditions.
Error message:
    Use of undefined constant STDERR - assumed 'STDERR' (this will throw
    an Error in a future version of PHP)
2020-02-21 08:19:55 -08:00
Zach Borboa cf9ab59780 Use setFile() 2020-01-14 21:01:04 -08:00
Zach Borboa 15a6a4dd98 Use setRange() 2020-01-14 20:58:42 -08:00
Zach Borboa a020585a73 Fix #608: Implement Curl::setRange() and MultiCurl::setRange() 2020-01-14 20:55:41 -08:00
Zach Borboa 1d0f6cfc84 Fix #609: Implement Curl::setFile() and MultiCurl::setFile() 2020-01-14 20:36:19 -08:00
Zach Borboa 2d591c3b7c Fix lingering temporary download file when using MultiCurl::addDownload() (#602) 2019-11-17 00:19:57 -08:00
Zach Borboa 7b70bc2697 Fix #602: Unify download implementation of MultiCurl::addDownload with Curl::download 2019-10-14 00:08:41 -07:00
Zach Borboa a418962c43 Bump version: 8.6.0 → 8.6.1 2019-08-04 21:18:26 -07:00
Zach Borboa 505663a55d Use camelCase for ArrayUtil function names and deprecate old snake_case names 2019-06-09 22:26:18 -07:00
Zach Borboa 9a538f3a6b Reduce number of ops 2019-05-12 21:13:10 -07:00
Zach Borboa 73bf10e265 Bump version: 8.5.1 → 8.6.0 2019-05-12 01:22:01 -07:00
Zach Borboa 03d4ffea4f Use is_file() as file_exists() also checks whether a directory exists 2019-05-11 09:40:02 -07:00
Zach Borboa 6f76666ee5 Clarify documentation for Curl::setRetry() and MultiCurl::setRetry() 2019-05-03 00:35:30 -07:00
Zach Borboa ff95a3c56f Bump patch version 2019-04-19 22:57:47 -07:00
Zach Borboa 62d5390ad7 Fix #579: Correct implementation of Curl::setProxyAuth() 2019-04-19 22:37:55 -07:00
Zach Borboa 2b387e3ef1 Bump minor version 2019-01-06 22:43:45 -08:00
Zach Borboa d45e6c17b6 Bump minor version 2018-12-19 08:35:45 -08:00
Zach Borboa 20707b600f Add note on excluding content-length header from DELETE requests 2018-11-29 23:48:18 -08:00
Tam Nguyen 067d73e6cc Only set CURLOPT_POSTFIELDS options if post data is not empty for DELETE method 2018-11-29 15:23:24 +07:00
Zach Borboa 8f0a52bb17 Bump patch version 2018-11-13 23:02:19 -08:00
Zach Borboa 5c6fd4cdf3 Fix #555: Remove temporary file when download fails 2018-11-08 08:27:47 -08:00
Zach Borboa 3193b41dcd Bump patch version 2018-09-09 00:05:39 -07:00
Zach Borboa 6fc4c5824b Fix #545: Allow fileless requests to use Content-Type: multipart/form-data.
This change allows making requests that don't contain files to use
Content-Type: multipart/form-data. Previously, requests with array data
not specifying any files were sent using
Content-Type: application/x-www-form-urlencoded.
2018-09-07 23:53:02 -07:00
Zach Borboa d1e7f85045 Bump patch version 2018-08-25 03:01:21 -07:00
Zach Borboa fc54b09d7a Move json encoder under \Curl\Encoder::encodeJson 2018-08-23 23:33:48 -07:00
Zach Borboa b5d9ec2120 Bump minor version 2018-08-18 11:02:12 -07:00
Zach Borboa 76137ca48f Fix #538: Allow objects implementing JsonSerializable to be serialized to JSON when passed as request data 2018-08-18 07:35:18 -07:00
Zach Borboa 4d4d80c22d Bump minor version 2018-08-04 11:16:07 -07:00
Zach Borboa 082f7389e3 Wrap json_encode() to throw error when the value being encoded fails 2018-08-01 23:45:57 -07:00
Zach Borboa 7c750584fd Fix undefined function json_last_error_msg() for older versions of php 2018-07-27 22:31:26 -07:00
Zach Borboa 24e98595f0 Throw error when json_encode fails 2018-07-27 01:43:17 -07:00
Zach Borboa d474d3f40f Default Curl::setProxyTunnel() to enable tunneling; Use Curl::setProxyTunnel() in proxy example 2018-07-17 20:21:44 -07:00
Zach Borboa 86e12e3b91 Fix #331: Add methods to use proxy 2018-07-17 04:29:25 -07:00
Zach Borboa c21970ff9a Fix #303: Add methods for mocking.
Thanks to Sven Lütje (B4rb4ross4) for the initial suggestion and pull
request.
2018-07-07 04:16:34 -07:00
Zach Borboa cdad9e1a01 Rename variable to use isChildOfMultiCurl as method name 2018-07-07 03:59:46 -07:00
Zach Borboa 0e1a0a1631 Clean up 2018-06-19 00:09:47 -07:00
Zach Borboa 2bb151e03d Allow specifying xml decoder options when calling Curl::setDefaultXmlDecoder 2018-06-18 23:08:26 -07:00
Zach Borboa 648ac2c21b Reset response variables to match initial values 2018-06-09 01:45:46 -07:00
Zach Borboa 0090c30b43 Bump minor version 2018-06-05 22:01:44 -07:00
Zach Borboa 51904c06e3 Simplify test for Curl::reset() 2018-06-04 23:03:32 -07:00
Reza Sanaie 9f34c2bf57 Allow support for curl_reset() 2018-06-04 10:21:22 -07:00
Zach Borboa d13c43160d Fix #521: Fix memory leak when class object unset, but not manually closed.
Move closure function outside class to avoid implicit reference to $this
and allow __destruct() to be called as expected when a class instance is
unset.
2018-05-23 00:31:33 -07:00
Zach Borboa a969fabaa0 Fix #513: Add support for detecting SOAP content-types 2018-04-26 17:59:23 -07:00
Zach Borboa e240b43606 Fix #511: Use correct body in POST requests that use empty data arrays.
This fixes JSON POST requests incorrectly sending a serialized empty
array "[]" instead of an empty request body by default.
2018-04-26 02:49:21 -07:00