Zach Borboa
cc4891ce55
Fix count() on null
2021-11-19 22:54:34 -05:00
Zach Borboa
3bc40c0138
Fix typo
2021-09-23 21:28:18 -04:00
Zach Borboa
37655237ac
Fix PHP CodeSniffer method name warnings
...
Warning message:
Method name "Curl::__get_[...]" is discouraged; PHP has reserved all
method names with a double underscore prefix for future use.
(PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore)
2021-09-21 15:58:39 -04:00
Zach Borboa
a4f4223b98
Implement Curl::setStop() for stopping requests early
...
Use Curl::setStop() to stop requests early without downloading
the full response.
2021-09-15 05:49:25 -04:00
Zach Borboa
6146e764f6
Ensure Curl::rawResponse is a string
2021-09-15 03:11:11 -04:00
Zach Borboa
5b7a9593be
Fix response length calculation when curl_exec() returns false on failure
2021-09-15 02:03:24 -04:00
Zach Borboa
108268bbf4
Display hint at content length determination
2021-09-14 10:31:49 -04:00
Zach Borboa
e6de01c8c3
Bump version: 9.3.1 → 9.4.0
2021-09-04 14:28:24 -04:00
Zach Borboa
45c09153fc
Bump version: 9.3.0 → 9.3.1
2021-08-05 06:49:22 -04:00
Zach Borboa
cd825550b2
Fix Curl::downloadFileName not being correctly set
2021-07-26 20:17:14 -04:00
Zach Borboa
7af4a8d383
Fix some errors caused by using strict types
2021-07-26 10:08:44 -04:00
Zach Borboa
bb1a190071
Use strict types
2021-07-26 00:48:18 -04:00
Zach Borboa
4353baa2f2
Fix floor() returning float instead of integer
2021-07-26 00:14:52 -04:00
Zach Borboa
73dfde67e2
Modernize type casting
2021-07-25 23:53:32 -04:00
Zach Borboa
1ac43b2972
Use strict parameters
2021-07-25 23:49:30 -04:00
Zach Borboa
98a18bc086
Use strict comparison
2021-07-25 23:45:52 -04:00
Zach Borboa
52a92d71a2
Bump version: 9.2.0 → 9.3.0
2021-07-23 21:56:47 -04:00
Zach Borboa
038c015f2c
Update diagnostic output wording
2021-07-21 10:47:18 -04:00
Zach Borboa
1226bb1a6c
Implement option to capture output of Curl::diagnose()
2021-07-20 23:28:20 -04:00
Zach Borboa
3b51359268
Add additional request details in Curl::diagnose()
2021-07-20 22:22:15 -04:00
Zach Borboa
b1faf1e4a0
Fix typos
2021-07-20 22:17:42 -04:00
Zach Borboa
2a899465c4
Add method to run basic request diagnostics
2021-07-18 21:56:03 -04:00
Zach Borboa
c3b0559eb6
Bump version: 9.1.0 → 9.2.0
2021-06-23 10:40:19 -04:00
Zach Borboa
250421927f
Add additional Curl::set* and MultiCurl::set* helper methods
2021-06-17 11:14:29 -04:00
Zach Borboa
47bd611647
Fix typo
2021-06-17 10:24:08 -04:00
Zach Borboa
fe829855cb
Fix #670 : Add additional checks before attempting to close curl handles
2021-06-09 20:58:33 -04:00
Zach Borboa
2e63c0d00a
Bump version: 9.0.0 → 9.1.0
2021-03-24 21:19:16 -04:00
Zach Borboa
0194365f71
Fix MultiCurl base url being overwritten by the most recently set url
...
Previously, when using MultiCurl and updating the url after instances
have already been initialized, the most recently specified base url
would be used for the requests. This change fixes using relative urls
with MultiCurl::add* methods and allows instance-specific base urls to
be used.
2021-03-23 23:56:29 -04:00
Zach Borboa
b88fd76ffc
Move Curl::buildUrl() to Url::buildUrl()
2021-03-23 10:02:11 -04:00
Zach Borboa
b1c882ec34
Bump version: 8.9.2 → 9.0.0
...
Fixes #380 , #541
2021-03-19 08:52:30 -04:00
Zach Borboa
161f9aea63
Use short array syntax
2021-03-18 01:15:52 -04:00
Zach Borboa
7bf3868c6d
Update docblock for params that expect callables or nulls
...
Would use callable type declarations, but the functions accept both a
callables and nulls which would require union types (available in 8.x).
2021-03-17 22:40:46 -04:00
Zach Borboa
cc3f7bac24
Remove PHP v5.x support and add basic doc for how one may install the old version
2021-03-17 12:19:38 -04:00
Zach Borboa
45db373722
Bump version: 8.9.1 → 8.9.2
2021-03-17 10:47:06 -04:00
Zach Borboa
05a1a21090
Remove official support of HHVM
...
As of HHVM 4.0, PHP is no longer supported:
"With this release, we no longer aim to be compatible with PHP"
"We are considering removing support for <?php in the next release [...]"
2021-03-17 09:33:50 -04:00
Zach Borboa
eb57bdabbd
Bump version: 8.9.0 → 8.9.1
2021-03-14 15:37:55 -04:00
Philipp Keck
933e0bb76b
Fix close() under PHP8
...
Fixes #662
At least on some platforms, maybe always with PHP8, is_resource(curl_init())===false because it returns the new \CurlHandle type instead.
2021-03-13 18:23:09 -05:00
Zach Borboa
03eedeabd4
Use identical comparison operator
2021-03-12 22:00:36 -05:00
Zach Borboa
3fb1838579
Clean up
2021-03-11 23:04:34 -05:00
Zach Borboa
ca1c6fb801
Temporarily make function private for now
2021-03-11 22:59:04 -05:00
harry
ff2a183c34
Added Curl::fastDownload() for faster downloads using multiple connections.
2021-03-11 22:54:41 -05:00
Zach Borboa
a40cc77eb4
Bump version: 8.8.0 → 8.9.0
2020-10-31 20:47:32 -07:00
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