Commit Graph

251 Commits

Author SHA1 Message Date
Zach Borboa 21134e119e Add MultiCurl::setOpts() 2016-09-04 00:07:31 -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 a02c8aa5f2 Fix undefined index when option not set 2016-09-03 22:49:41 -07:00
Zach Borboa 2e08fc596a Bump major version 2016-09-02 17:18:01 -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
Zach Borboa ae6a3e5c28 Append existing error message when not empty 2016-09-01 23:14:01 -07:00
Zach Borboa 14d651b4ad Fix memory leak when using Curl::setDefaultDecoder() 2016-09-01 00:05:15 -07:00
Zach Borboa d70c770cc1 Include additional error code information in error message when possible 2016-08-31 23:31:59 -07:00
Zach Borboa 6e636f02c8 Add warning against using error code from curl_errno() for multi handles 2016-08-31 23:31:32 -07:00
Zach Borboa 6dc65e994c Set Curl::curlErrorMessage from target handle 2016-08-31 21:39:34 -07:00
Zach Borboa 1edc13b5eb Clean up docblocks 2016-08-29 23:05:01 -07:00
Zach Borboa 8db91c79c7 Ensure Curl::setOpts() returns true when all options are successfully set 2016-08-29 22:44:48 -07:00
Zach Borboa 39c21041a5 Clean up per PSR2 2016-08-24 00:25:38 -07:00
Zach Borboa 5877dd0933 Bump minor version 2016-08-18 19:27:24 -07:00
Zach Borboa a2918325ae Fix "Too many open files" error when adding hundreds of downloads using MultiCurl:addDownload() 2016-08-15 23:41:46 -07:00
Zach Borboa 58a6568cab Return immediately when already multicurl has already started 2016-08-15 00:39:26 -07:00
Zach Borboa e31718fbfe Remove negation 2016-08-15 00:30:09 -07:00
Zach Borboa 849137a95e Use explicit argument separator when building url 2016-08-12 02:01:23 -07:00
Zach Borboa 004021f376 Clean up 2016-08-11 20:49:59 -07:00
Zach Borboa ea7e649308 Set content-length header when it can be determined 2016-08-11 20:47:47 -07:00
Zach Borboa 294aad0260 Remove trailing whitespace 2016-08-11 20:28:44 -07:00
Gor Martsen 8a377052bc Fix documentation 2016-08-11 11:58:40 -04:00
Gor Martsen 4f16a605aa Add Search request 2016-08-11 11:54:18 -04:00
Gor Martsen 3f94e02f35 Add custom request support 2016-08-10 17:38:23 -04:00
Zach Borboa 35df88a9c5 Remove unnecessary function call 2016-08-10 02:51:46 -07:00
Zach Borboa 8f2b878237 Clean up spacing 2016-08-10 02:46:38 -07:00
Zach Borboa 1ad73d5da0 Remove all caps 2016-08-07 22:55:35 -07:00
Zach Borboa 9aca3a996c Clean up 2016-08-07 22:42:38 -07:00
Zach Borboa 26701569b2 Implement Curl::setOpts() 2016-08-07 22:41:12 -07:00
Zach Borboa a8c2b53fa1 Store option set only when option successfully set 2016-08-07 21:11:25 -07:00
Zach Borboa 61aef351a7 Replace "else if" with "elseif" 2016-08-07 15:12:04 -07:00
Zach Borboa 63b06beb9a Bump major version 2016-08-07 02:27:11 -07:00
Zach Borboa a48ec2bfff Check all array values for binary data; Remove JSON_PRETTY_PRINT only supported PHP >= 5.4.0 2016-08-07 01:40:02 -07:00
Zach Borboa a32726bc09 Clean up 2016-08-07 01:37:30 -07:00
Zach Borboa 679ce8e3c4 Fix #345: Allow POSTing multidimensional array with file 2016-08-07 00:04:36 -07:00
Zach Borboa 4b1084647b Bump minor version 2016-07-25 08:35:37 -07:00
Zach Borboa d2d4fe3f5a Move JSON content-type pattern encode check to start of Curl::buildPostData 2016-07-24 01:10:26 -07:00
Zach Borboa fe6c0c55cb Clean up 2016-07-24 00:56:21 -07:00
Zach Borboa 6bae7d020c Call json_decode() without $options parameter in PHP versions less than 5.4.0 2016-07-23 14:16:06 -07:00
Zach Borboa 8285b9ff21 Fix #357: Allow passing json_decode() parameters to Curl::setDefaultJsonDecoder 2016-07-23 01:26:57 -07:00
Zach Borboa 6085204f2f Simplify Curl::setCookieString 2016-07-17 14:41:50 -07:00
Zach Borboa 93cee4b8e2 Merge branch 'master' of git://github.com/mydansun/php-curl-class into mydansun-master
* 'master' of git://github.com/mydansun/php-curl-class:
  Update Curl.php
  Update Curl.php
  Add setCookieString method on Curl.php
2016-07-17 13:55:58 -07:00
Zach Borboa 1437f32492 Bump minor version 2016-07-16 14:29:08 -07:00
Zach Borboa e3f159079e Merge branch 'master' of github.com-zachborboa:zachborboa/php-curl-class
* 'master' of github.com-zachborboa:zachborboa/php-curl-class:
  Add defaultDecoder for parseResponse
  Add defaultDecoder for parseResponse
2016-07-11 01:09:21 -07:00
Zach Borboa 1028030d8f Add Curl::getInfo() 2016-07-11 01:07:35 -07:00