Commit Graph

146 Commits

Author SHA1 Message Date
Zach Borboa acf8e9f6a0 Include curl error code constant in curl error message (Curl::curlErrorMessage)
Before:
    Timeout was reached: Operation timed out after 30001 milliseconds with 1453867 out of 3000000 bytes received

After:
    Timeout was reached (CURLE_OPERATION_TIMEOUTED): Operation timed out after 30001 milliseconds with 1453867 out of 3000000 bytes received
2022-09-30 07:52:27 -07:00
Zach Borboa cab99aaee5 Add MultiCurl example for retrying with a new unique proxy (#729) 2022-09-28 14:22:30 -07:00
Zach Borboa 7ce0fc5ced Explicitly set desired concurrency 2022-09-28 11:06:44 -07:00
Zach Borboa aebaef528b Add example for queuing requests dynamically 2022-09-23 07:06:39 -07:00
Zach Borboa 642e232dc2 Add examples for Curl::beforeSend() and MultiCurl::beforeSend() 2022-07-01 21:38:18 -07:00
Zach Borboa 8f7c24b71d Add additional logging to display progression 2022-06-23 09:46:46 -04:00
Zach Borboa 523386ec01 Fix #714: Attempt to stop active requests when MultiCurl::stop() is called 2022-06-23 08:26:20 -04:00
Zach Borboa e2408025b8 Fix #702: Add example for processing requests later 2021-12-29 07:48:52 -08:00
Zach Borboa 2c73d6321e Fix #684: Add GET request with port specified 2021-10-03 18:32:45 -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 0db3c1b227 Fix #675: Use paths with leading slashes 2021-09-14 09:32:45 -04:00
Zach Borboa 6ceabf7293 Clean up 2021-07-26 00:35:01 -04:00
Zach Borboa a9592df07a Add example showing Curl::diagnose() usage 2021-07-20 22:32:51 -04:00
Zach Borboa feca86813d Update urls used in examples 2021-04-03 09:24:19 -04:00
Zach Borboa 64df98c50f Match number of servers started 2021-03-28 23:44:25 -04:00
Zach Borboa 06ca377f64 Add support for using relative urls with MultiCurl::add*() methods
This change allows setting a base url with MultiCurl and adding requests
using relative paths.

Fixes #628.
2021-03-23 11:03:39 -04:00
Zach Borboa 161f9aea63 Use short array syntax 2021-03-18 01:15:52 -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 43f96a4c8b Clean up 2020-10-27 19:05:58 -07:00
Mao Wang 0982719743 update examples 2020-10-28 09:31:37 +08:00
Mao Wang 5a3a4cca9d update examples 2020-10-28 09:31:03 +08:00
Mao Wang 0e513d3082 update examples 2020-10-28 09:28:02 +08:00
Zach Borboa f5bc12ac56 Add example for using rate limiter via MultiCurl::setRateLimit() 2020-05-16 23:45:59 -07:00
Zach Borboa 1f62ac4428 Fix #606: Add example for fetching range using Curl::setRange() 2020-04-20 23:03:27 -07:00
Zach Borboa c78d271b29 Fix #626: Add MultiCurl example for retrying with a new proxy 2020-04-18 10:40:25 -07:00
Zach Borboa ea66e3bfb9 Standardize the use import statements 2020-04-17 18:47:59 -07:00
Zach Borboa fe1a65b741 Unify file names of download example script 2019-10-31 20:44:05 -07:00
Zach Borboa 33b748c71a Unify Curl and MultiCurl examples 2019-10-31 20:40:52 -07:00
Zach Borboa 04d1db9d54 Rename download file examples 2019-10-31 20:34:36 -07:00
Zach Borboa 11dbef81fe Fix #603: Add note on getting progress indicators to work 2019-10-13 22:28:45 -07:00
Zach Borboa 0857023319 Fix #572,#582: Add MultiCurl::setProxies() to make multicurl requests with multiple proxies 2019-05-12 01:01:57 -07:00
Zach Borboa 494d8a75a2 Add additional tests for MultiCurl proxy functions 2019-05-11 23:26:10 -07:00
Zach Borboa 6cd12b6d24 Fix #585: Add example for MultiCurl::addCurl() 2019-05-07 23:43:32 -07:00
Zach Borboa 12661cffe2 Fix #581: Add example to retry request based on HTTP status code. 2019-04-30 00:52:34 -07:00
Zach Borboa 35a32a7a77 Fix #567: Add proxy support for MultiCurl 2019-01-05 00:43:21 -08:00
Zach Borboa 4320e8fe96 Fix #559: Add example that sets custom request instance tags. 2018-12-05 22:46:03 -08:00
Zach Borboa 28bb757012 Fix #554: Add example for making a request through a SOCKS 5 proxy 2018-10-30 21:51:31 -07:00
Zach Borboa c2f47ca553 Fix #553: Add example for sending a POST request with XML data 2018-10-30 21:17:05 -07:00
Sandy Ganz ab17c4f9c4 Removed index on response
The $curl->response seems to be all that is needed, the 'json' index was invalid when I tried it.
2018-10-10 09:05:22 -07:00
Zach Borboa 0f790e77b6 Ensure any code after a redirect is not executed 2018-10-01 23:54:52 -07:00
Zach Borboa 6ce706da91 Fix #532: Add example that uses manual json encoding 2018-07-27 01:03:34 -07:00
Zach Borboa 01d9955e6d Use correct mime type 2018-07-22 21:41:43 -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 29dd124a6d Use Curl::setProxy() in proxy example 2018-07-17 20:16:55 -07:00
Zach Borboa eca70c8d41 Add custom xml decoder example 2018-06-19 01:23:24 -07:00
Zach Borboa dd886611e6 Add script to start development servers for load test 2018-04-28 00:32:01 -07:00
Zach Borboa 00cfe93f6a Use MultiCurl::setConcurrency() in load test example 2018-04-27 23:31:46 -07:00
Zach Borboa ef4468d36f Fix #305: Implement Curl::getResponseCookies() 2017-11-01 22:59:25 -07:00
Zach Borboa a470ce9cf1 Clean up 2017-10-12 23:27:17 -07:00
Zach Borboa ce9ff3c7ec Fix #347: Add basic support for requests using relative paths 2017-10-09 19:30:36 -07:00