199 Commits

Author SHA1 Message Date
Pete Watts 9d03d46290 Fix #234 Fixed PATCH request method to correctly support sending body data. 2015-08-20 12:46:32 +01:00
Pete Watts a7ed5182da Fixed test CurlTest::testUserAgent where PHP_VERSION contains regex special chars (e.g. 5.6.9-0+deb8u1) 2015-08-20 12:38:48 +01:00
Zach Borboa bcad567db9 Fix long lines 2015-08-20 02:37:51 -07:00
Zach Borboa 29afe450f8 Add check to prohibit excessively long lines in php files 2015-08-20 02:37:11 -07:00
Zach Borboa f10ca99e59 Add test for PATCHing a multidimensional array (#205) 2015-08-20 00:44:28 -07:00
Zach Borboa e46dc8146e Fix continuous integration tests for HHVM 2015-08-19 18:07:04 -07:00
Zach Borboa 2df98d1708 Add test for adding Multicurl handles after calling start() 2015-08-19 08:47:50 -07:00
Zach Borboa d7861d8e08 Update HTTP digest authentication tests for MultiCurl 2015-08-11 20:34:27 -07:00
Vladimir Chernyshev e3b09c6654 Update PHPMultiCurlClassTest.php
Add testDigestHttpAuthSuccess
2015-08-11 13:24:09 +03:00
Zach Borboa 8d701b0648 Fix #191: Use $camelCase for properties (class member variables) 2015-07-30 23:54:03 -07:00
Zach Borboa e3b405ed5d Add support for detecting additional JSON content-types 2015-04-30 08:19:38 -07:00
Zach Borboa a79e64b2ca Fix #174: Correctly set cookie value when using http_build_query().
http_build_query() url encodes the cookie data array. Use urldecode() to undo
the URL-encoding and allow characters including the colon (":").
2015-04-29 12:38:07 -07:00
Zach Borboa 8ce0a208b5 Skip Digest Access Authentication test on HHVM 2015-04-23 16:19:47 -07:00
Zach Borboa bfb932dc30 Fix script.sh exiting with return code 0 when phpunit tests fail 2015-04-23 15:48:26 -07:00
Zach Borboa 3ebc19f916 Clean up request method tests 2015-04-23 15:45:34 -07:00
Zach Borboa 7256a716a1 Fix missing body in DELETE tests 2015-04-23 15:44:15 -07:00
Zach Borboa 91b94627d1 Fix #178: Remove circular reference during cleanup 2015-04-22 23:42:35 -07:00
Zach Borboa b31251a7fd Clean up 2015-04-22 02:39:59 -07:00
Zach Borboa 70be5e4eb3 Fix #171: Allow sending body data in delete() 2015-04-22 01:18:48 -07:00
Zach Borboa bfe5b2fed4 Fix #161: Replace deprecated mime_content_type() with finfo_file() when available 2015-04-01 16:41:50 -07:00
Zach Borboa bf10280cdb Add test for #154 2015-03-26 08:22:09 -07:00
Zach Borboa 2028a86dd4 Add tests for MultiCurl::setUrl() 2015-03-04 01:23:23 +07:00
Zach Borboa 5a5ce14915 Clean up 2015-02-25 02:02:06 +07:00
Zach Borboa 20ee312a10 Add ability to specify a callback for MultiCurl::download() 2015-02-25 01:24:38 +07:00
Zach Borboa eb8b6dcc19 Add ability to specify a callback for Curl::download() 2015-02-24 12:56:17 +07:00
Zach Borboa 2f7073743e Allow setting the base url for requests in the constructor (Curl::__construct($base_url = null)) 2015-02-22 23:17:32 +07:00
Zach Borboa 3aca8d167c Allow setting the base url for requests.
Curl::setUrl() can now be used to specify the base url while passing only one
$data parameter to Curl::delete(), Curl::get(), Curl::head(), Curl::options(),
Curl::patch(), Curl::post(), and Curl::put().
2015-02-22 18:25:16 +07:00
Zach Borboa f9df529d07 Make before script executable 2015-02-22 13:47:32 +07:00
Zach Borboa 9c08e45c8b Rename syntax check script 2015-02-22 13:42:22 +07:00
Zach Borboa ecd0831953 Add http digest auth tests 2015-02-22 02:30:35 +07:00
Zach Borboa 06b0cb62a0 Combine http basic auth tests 2015-02-22 01:18:42 +07:00
Zach Borboa 0dfb568734 Add workaround for hhvm to avoid "Notice: File could not be loaded: ..." 2015-02-17 01:34:31 +07:00
Zach Borboa 06c4f9ff0d Fix "warning: here-document at line XX delimited by end-of-file (wanted `EOF')" 2015-02-17 01:20:16 +07:00
Zach Borboa a8575a1ecd Enforce indentation consistency in php files 2015-02-17 00:31:43 +07:00
Zach Borboa d67fbd3677 Remove unnecessary usage of xargs 2015-02-16 16:55:14 +07:00
Zach Borboa 7f2a97f57b Implement additional MultiCurl functions available in Curl.
MultiCurl::setBasicAuthentication(), MultiCurl::setCookie(),
MultiCurl::setCookieFile(), MultiCurl::setCookieJar(),
MultiCurl::setJsonDecoder(), MultiCurl::setReferer(), MultiCurl::setReferrer(),
MultiCurl::setTimeout(), MultiCurl::setUserAgent(), MultiCurl::unsetHeader(),
MultiCurl::verbose()
2015-02-16 15:55:57 +07:00
Zach Borboa fcaf4c5d2d Make scripts executable 2015-02-16 14:21:33 +07:00
Zach Borboa 7e341b56c4 Fix "Undefined index" errors 2015-02-15 00:36:37 +07:00
Zach Borboa 124d60314c Implement MultiCurl::addDownload(); Add Curl::download() and MultiCurl::download() examples 2015-02-15 00:10:16 +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 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