Commit Graph

859 Commits

Author SHA1 Message Date
Zach Borboa cc23a1b29e Fix Curl::unsetHeader() 2016-09-24 01:02:04 -07:00
Zach Borboa 126491d8fc Allow requested test to be set via query string parameter 2016-09-24 00:54:38 -07:00
Zach Borboa 90b17385f6 Implement removeHeader(); unsetHeader now unsets existing header
removeHeader() removes an internal request header.
unsetHeader() now removes an extra header previously set using setHeader().
2016-09-24 00:09:55 -07:00
Zach Borboa b7f6a9da32 Use realistic referrer 2016-09-23 22:11:50 -07:00
Zach Borboa c0d325b0ae Use var_dump() as response is not always a string 2016-09-23 22:11:28 -07:00
Zach Borboa d8b46b96af Merge pull request #395 from zachborboa/master
Implement Curl::setMaxFilesize()
2016-09-23 01:40:11 -07:00
Zach Borboa af03a4b81e Add bytes to callback 2016-09-23 01:25:52 -07:00
Zach Borboa 4818885d3f Update available methods in readme 2016-09-23 01:17:55 -07:00
Zach Borboa 363a362bcd Fix #332: Implement Curl::setMaxFilesize() 2016-09-23 01:13:49 -07:00
Zach Borboa f26d659a89 Clean up 2016-09-22 23:54:10 -07:00
Zach Borboa dfdbdee009 Add additional searchable keywords 2016-09-22 00:43:54 -07:00
Zach Borboa 77ef773aa3 Add searchable keywords 2016-09-21 23:59:44 -07:00
Zach Borboa 371a09b6e9 Fix #393: Add examples for POSTing data with and without indexes 2016-09-21 23:58:36 -07:00
Zach Borboa 52f4df9cfe Fix #322,#369: Add chunked transfer-encoding example 2016-09-12 02:16:21 -07:00
Zach Borboa 956ee3d23d Include error code in output on error 2016-09-12 01:45:08 -07:00
Zach Borboa dfc36bb38f Add download file with redirection example 2016-09-12 00:33:07 -07:00
Zach Borboa 31cd3aa889 Wrap lines 2016-09-10 03:29:13 -07:00
Zach Borboa 2a87556c0a Add docker build and run scripts 2016-09-10 03:16:41 -07:00
Zach Borboa b64bccdd4f Add Dockerfile for www.phpcurlclass.com 2016-09-10 03:04:11 -07:00
Zach Borboa f8c653020c Add new homepage 2016-09-09 17:22:06 -07:00
Zach Borboa 173c70d3a5 Remove outdated docs; See examples instead 2016-09-09 01:09:54 -07:00
Zach Borboa d24f822dd3 Merge pull request #389 from zachborboa/master
Add MultiCurl::setConcurrency() to modify the number of concurrent requests
2016-09-04 21:56:06 -07:00
Zach Borboa 443f5ddebf Fix unsupported short hand array for PHP 5.3 2016-09-04 21:27:01 -07:00
Zach Borboa fd834a8592 Add local load test example 2016-09-04 21:15:17 -07:00
Zach Borboa f4fffbc486 Add ability to set the number of concurrent requests 2016-09-04 20:54:57 -07:00
Zach Borboa 35fbade352 Rename windowSize to concurrency 2016-09-04 20:50:01 -07:00
Zach Borboa e77f853ab6 Make windowSize private 2016-09-04 20:48:41 -07:00
Zach Borboa c41fbba4e5 Merge pull request #388 from zachborboa/master
Add additional methods and fixes to MultiCurl
2016-09-04 03:16:17 -07:00
Zach Borboa 7ca7ac3629 Use request-line header and effectiveUrl for assertions 2016-09-04 03:03:24 -07:00
Zach Borboa a7b9042871 List PHP 7.1 compatibility 2016-09-04 01:48:25 -07:00
Zach Borboa 67e7992386 Clean up 2016-09-04 01:45:03 -07:00
Zach Borboa f9cf113a86 Remove Curl::getResponseCookies(), use Curl::responseCookies directly instead 2016-09-04 01:43:10 -07:00
Zach Borboa 7038db4538 Make internal method private 2016-09-04 01:42:17 -07:00
Zach Borboa c2d04221e7 Add MultiCurl::setPort() 2016-09-04 01:19:27 -07:00
Zach Borboa 35ac500e03 Improve cookie handling for multicurl requests.
Fix Curl::responseCookies set in headerCallback() being overwritten during multicurl request.
Use rfc cookie encoding when using MultiCurl::setCookie().
Make MultiCurl::responseCookies publicly accessible.
2016-09-04 01:12:06 -07:00
Zach Borboa 4c47bac9fa Add multicurl test for setHeader and individual overrides 2016-09-04 00:13:49 -07:00
Zach Borboa 21134e119e Add MultiCurl::setOpts() 2016-09-04 00:07:31 -07:00
Zach Borboa 6c542c4784 Update readme methods 2016-09-03 23:20:18 -07:00
Zach Borboa 82b64c2290 Add MultiCurl::setConnectTimeout() 2016-09-03 23:19:42 -07:00
Zach Borboa c634e65a19 Add MultiCurl::setCookieString() 2016-09-03 23:18:22 -07:00
Zach Borboa 946f4a74a1 Fix undefined index when option not set for MultiCurl::getOpt() 2016-09-03 23:06:25 -07:00
Zach Borboa 90560e5d9c Add phpcs to require-dev 2016-09-03 22:53:04 -07:00
Zach Borboa a02c8aa5f2 Fix undefined index when option not set 2016-09-03 22:49:41 -07:00
Zach Borboa 5087433ba1 Start built-in web server for PHP 7.1 continuous integration tests 2016-09-02 17:27:05 -07:00
Zach Borboa 2e08fc596a Bump major version 6.0.0 2016-09-02 17:18:01 -07:00
Zach Borboa 522fe31dd0 Merge pull request #387 from zachborboa/updates
Implement a more efficient handling of requests in parallel
2016-09-02 04:15:11 -07:00
Zach Borboa 3789e2077b Implement a more efficient handling of requests in parallel.
A window size is now used to set the maximum number of active requests at any given time. Each time a request is
completed, a new request is added from the queue until all requests are processed. The result is a more continuous
stream of requests rather than a burst of requests that may cause servers to quickly become overloaded.
2016-09-02 03:57:53 -07:00
Zach Borboa b907159c2f Move download complete handling to Curl::exec() 2016-09-02 01:30:16 -07:00
Zach Borboa e55c556601 Refactor for queuing 2016-09-02 01:09:23 -07:00
Zach Borboa 75a944dd90 Clean up 2016-09-02 00:43:41 -07:00