344 Commits

Author SHA1 Message Date
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 a053ed73ad Fix #543: Use original response when xml decode fails 2018-08-23 22:47:25 -07:00
Zach Borboa 7243b35081 Clean up 2018-08-18 12:03:12 -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 ee89e5fd67 Rename to remove abbreviation 2018-06-21 23:54:52 -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 703d0acfa0 Clean up 2018-06-07 03:18:01 -07:00
Zach Borboa e86246a1b7 Match order of unparsed url parts 2018-06-07 03:12:07 -07:00
Zach Borboa 12aac6d4cd Clean up 2018-06-07 02:26:51 -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 fa39f26a3a Fix #517: Require mbstring extension.
Use global namespace for mb_* functions.
2018-04-28 16:21:15 -07:00
woxcab c91d7a7d78 Erase base URL parts if their preceding parts have overwritten by relative URL 2018-04-27 23:27:35 +03:00
woxcab e7dc9f7bdc Prevent URL fragment destructing 2018-04-27 21:01:20 +03: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
Zach Borboa 4b19e0fa02 Bump patch version 2018-04-21 01:28:43 -07:00
Zach Borboa cfad5c4d3c Fix #505: Allow requests with Cyrillic characters in url 2018-04-20 01:03:05 -07:00
Zach Borboa 75597b28c4 Bump patch version 2018-04-09 01:28:13 -07:00
Zach Borboa a028011f3d Fix #506: Remove content-length header for PATCH requests when data is empty 2018-04-09 01:03:40 -07:00
Zach Borboa 83cd9d14ee Update comment to match new behavior 2018-03-06 22:17:38 -08:00
agapov97 caf1ec2062 multicurl - starting new requests while curls array is not empty and activeCurls array size less than concurrency 2018-02-26 17:21:21 +03:00
Zach Borboa 6efebcdcdf Update @return documentation 2018-02-08 08:12:58 -08:00
Zach Borboa 8156a3f402 Bump patch version 2018-01-27 04:41:34 -08:00
Zach Borboa afce677cb0 Clean up 2018-01-27 04:40:38 -08:00
Zach Borboa 40f7026185 Fix #493: Build POST data correctly when headers have been set.
Call MultiCurl::queueHandle sooner so that headers are correctly set when Curl::buildPostData is called and builds POST data differently depending on the request content-type.
2018-01-26 00:58:37 -08:00
Zach Borboa 44c1539ba6 Fix decoders set on individual instances ignored 2018-01-25 22:49:57 -08:00
Zach Borboa 21729d22a9 Use Curl::setCookies in favor Curl::setCookie in loop 2018-01-25 21:20:11 -08:00
Zach Borboa 50927dd294 Rename callbacks 2018-01-25 20:29:55 -08:00
Zach Borboa aa74a1cea4 Clean up 2018-01-25 19:52:20 -08:00
Zach Borboa cbacd9a68b Fix #490: Allow malformed response header to be parsed without error 2018-01-09 01:58:51 -08:00
Zach Borboa dc8282d086 Bump major version 2017-11-01 23:07:25 -07:00