Commit Graph

384 Commits

Author SHA1 Message Date
Zach Borboa 124d60314c Implement MultiCurl::addDownload(); Add Curl::download() and MultiCurl::download() examples 2015-02-15 00:10:16 +07:00
Zach Borboa 7356801272 Bump patch version 2015-02-12 23:32:29 +07:00
Zach Borboa f847128cf3 Fix "PHP Notice: Use of undefined constant STDOUT" when reading the PHP script from stdin 2015-02-12 23:20:52 +07:00
Zach Borboa 9d55cee39b Merge pull request #135 from zborboa-google/master
Implement MultiCurl for processing multiple cURL handles asynchronously
2015-02-12 22:01:28 +07:00
Zach Borboa de9ea7847d Bump major version (incompatible API changes). 2015-02-12 21:50:04 +07:00
Zach Borboa 252055207b Clean up 2015-02-12 18:55:55 +07:00
Zach Borboa a02e6c4e4d Update multi curl example in readme; Add multi curl examples 2015-02-12 18:51:23 +07:00
Zach Borboa daa7694330 Add Experimental Methods to readme 2015-02-11 07:49:10 +07:00
Zach Borboa 6e9bdf9817 Implement MultiCurl::setHeader(), MultiCurl::setOpt(), MultiCurl::getOpt() 2015-02-11 07:41:21 +07:00
Zach Borboa a0da3731d4 Add callback override test 2015-02-11 06:56:42 +07:00
Zach Borboa eb9986a229 Add individual curl callback error tests 2015-02-11 06:36:16 +07:00
Zach Borboa 7bf9508828 Add individual curl callback tests 2015-02-11 06:19:27 +07:00
Zach Borboa fc8b6e1e31 Add callback tests for errors 2015-02-10 14:40:59 -08:00
Zach Borboa 012c310c75 Rename curl_multi -> multi_curl 2015-02-10 14:15:52 -08:00
Zach Borboa 1060fd30a5 Implement MultiCurl::addPut() 2015-02-10 14:08:18 -08:00
Zach Borboa 51420bb764 Implement MultiCurl::addPost() 2015-02-10 14:00:09 -08:00
Zach Borboa 5eb436cb26 Implement MultiCurl::addPatch() 2015-02-10 13:53:04 -08:00
Zach Borboa 6bd3626544 Implement MultiCurl::addOptions(); Fix issue caused by messages left in the queue (curl_multi_info_read) 2015-02-10 13:39:33 -08:00
Zach Borboa bad06c358b Implement and add tests for MultiCurl::addDelete() and MultiCurl::addHead() 2015-02-10 12:41:18 -08:00
Zach Borboa cd80ae8211 Use Curl::setURL() for HTTP calls; Update command line equivalents of calls 2015-02-10 11:44:03 -08:00
Zach Borboa 9da8277926 Add example implementation of MultiCurl::addGet() with MultiCurlTest tests 2015-02-10 10:21:57 -08:00
Zach Borboa 79d099b9ab Refactor Curl for MultiCurl.
Add Curl::id.
Use CURLOPT_HEADERFUNCTION in place of CURLOPT_WRITEHEADER for response headers.
Add Curl::setUrl().
Add Curl::headerCallback().
Make Curl::exec() public.
Make Curl::call() public.
2015-02-09 19:42:09 -08:00
Zach Borboa 2e8ccceae3 Remove support for parallel requests 2015-02-09 01:48:32 -08:00
Zach Borboa b2f89626fe Merge pull request #133 from zachborboa/master
Fix #86: Add default timeout of 30 seconds
2015-02-08 23:18:10 +07:00
Zach Borboa 33d5c8b463 Bump patch version 2015-02-08 23:14:29 +07:00
Zach Borboa bbdba6d907 Fix #86: Add default timeout of 30 seconds 2015-02-08 23:13:25 +07:00
Zach Borboa dc4e45fd12 Bump patch version 2015-01-26 23:30:12 -08:00
Zach Borboa a6ba4cfd75 Merge pull request #130 from zachborboa/master
Fix callbacks for curl multi requests; Add beforeSend() tests
2015-01-26 23:27:59 -08:00
Zach Borboa ac7adb503c Fix callbacks for curl multi requests; Add beforeSend() tests 2015-01-26 23:23:21 -08:00
Zach Borboa f1afdc7dfd Clean up 2015-01-26 07:24:40 -08:00
Zach Borboa 356c2c31ed Clean up 2015-01-24 16:39:25 -08:00
Zach Borboa fe95c24cf8 Add available methods to readme 2015-01-24 16:30:30 -08:00
Zach Borboa 27373e73de Merge pull request #128 from zachborboa/master
Fix #126: Add configurable json decoder
2015-01-24 10:34:57 -08:00
Zach Borboa 85cd7e4d90 Add configurable json decoder 2015-01-24 10:26:44 -08:00
Zach Borboa 9adaf86205 Merge pull request #125 from zborboa-google/patch-7
Update composer.json
2015-01-24 09:04:01 -08:00
zborboa-google 74c9cc8d68 Update composer.json 2015-01-23 15:51:22 -08:00
Zach Borboa 09a649493d Merge pull request #122 from zachborboa/master
Add bump major, minor, and patch version scripts for semantic versioning
2015-01-17 03:08:17 -08:00
Zach Borboa c2be7a781e Add bump major, minor, and patch version scripts for semantic versioning 2015-01-17 03:07:16 -08:00
Zach Borboa 4fab0f3006 Merge pull request #121 from zachborboa/master
json-encode request when request header Content-Type is application/json and data is a multidimensional array
2015-01-17 02:54:51 -08:00
Zach Borboa 1243678883 Bump version 2015-01-17 02:52:17 -08:00
Zach Borboa 891a66c327 Fix #120: json-encode request when request header Content-Type is application/json and data is a multidimensional array 2015-01-17 02:00:25 -08:00
Zach Borboa ec8b7825aa Refactor json request test to add additional tests 2015-01-17 01:45:52 -08:00
Zach Borboa f6b626d83d Bump version 2015-01-14 22:44:23 -08:00
Zach Borboa 9aebeb80b3 Merge pull request #117 from mangeld/patch-1
Fixed cpu draining with parallel requests
2.1.2
2015-01-08 13:40:22 -08:00
Miguel Ángel Durán González 224eab6eab Fixed cpu draining with parallel requests
Why not add that call so it stops the loop if curl is not ready? That way the loop won't take all the available cpu.
2015-01-08 21:57:41 +01:00
Zach Borboa 3d03d25d5a Merge pull request #116 from zachborboa/master
Add line ending and indentation character consistency checks
2015-01-01 16:27:36 -08:00
Zach Borboa c1cf3b3f08 Enforce line ending consistency in php files 2015-01-01 16:19:12 -08:00
Zach Borboa b24f0e06f8 Merge pull request #115 from zachborboa/master
Run unit tests before checking trailing whitespace in php files
2014-12-31 14:28:17 -08:00
Zach Borboa 69c1741597 Prohibit tab characters in php files 2014-12-31 14:27:10 -08:00
Zach Borboa f8b851dec6 Run unit tests before checking trailing whitespace in php files 2014-12-31 14:01:51 -08:00