89 Commits

Author SHA1 Message Date
Zach Borboa 4f5fa06d99 Bump patch version 2015-04-01 10:56:33 -07:00
Zach Borboa 502b6aa432 Fix "Warning: curl_setopt(): supplied argument is not a valid File-Handle resource" 2015-04-01 10:54:56 -07:00
Zach Borboa 34d2b95d01 Move download complete to unified method 2015-04-01 10:38:37 -07:00
Zach Borboa d279e4b598 Fix curl file handle not being correctly unset; Clean up 2015-04-01 09:58:21 -07:00
Drew Brigham 4e0fefac12 Adds parameters to http_build_query
Fixes the issue of sending &amp to servers. More information is at http://php.net/manual/en/function.http-build-query.php#102324
2015-03-26 07:54:22 -04:00
Zach Borboa cac457a562 Allow setting the base url for requests in the constructor (MultiCurl::__construct($base_url = null)) 2015-03-03 22:26:02 +07:00
Zach Borboa 6a0645e36f Bump minor version 2015-03-03 03:15:01 +07:00
mohsen abe5bee54b Add progress callback 2015-02-27 17:59:07 +03:30
Zach Borboa f9d06fb2ac Clean up parameter names 2015-02-25 02:05:09 +07:00
Zach Borboa cfb0011627 Bump minor version (backwards-compatible API changes) 2015-02-25 01:26:41 +07:00
Zach Borboa 20ee312a10 Add ability to specify a callback for MultiCurl::download() 2015-02-25 01:24:38 +07:00
Zach Borboa ab6c11eb13 Allow calling call() with any number of arguments 2015-02-25 01:13:58 +07:00
Zach Borboa e28b41998c Call download callback only on success 2015-02-25 00:14:15 +07:00
Zach Borboa eb8b6dcc19 Add ability to specify a callback for Curl::download() 2015-02-24 12:56:17 +07:00
Zach Borboa f6c9162132 Bump minor version (backwards-compatible API changes) 2015-02-22 23:21:55 +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 d559a3d9c2 Bump minor version (backwards-compatible API changes) 2015-02-22 18:34:17 +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 5b60fdaf1a Remove redundant default/required option CURLOPT_RETURNTRANSFER 2015-02-22 00:42:09 +07:00
Zach Borboa 3d3c33e599 Merge branch 'patch-1' of git://github.com/k00ni/php-curl-class into k00ni-patch-1
* 'patch-1' of git://github.com/k00ni/php-curl-class:
  Add setDigestAuthentication to Curl class
2015-02-22 00:40:14 +07:00
Konrad Abicht b5de0139ea Add setDigestAuthentication to Curl class
Function setDigestAuthentication works mostly like setBasicAuthentication, except it set **CURLOPT_HTTPAUTH** to **CURLAUTH_DIGEST**. Furthermore it sets **CURLOPT_RETURNTRANSFER** to **true**.
2015-02-20 21:56:44 +01:00
Zach Borboa 2ba3584eaa Reorder class functions 2015-02-19 14:05:48 +07:00
Zach Borboa 3fb64b14de Rename Curl::postfields() -> Curl::buildPostData 2015-02-19 14:04:18 +07:00
Zach Borboa 72f7e09f57 Bump patch version 2015-02-16 16:33:38 +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 f6563812e8 Group class properties and methods in MultiCurl by visibility 2015-02-15 01:49:08 +07:00
Zach Borboa c3a76c7a62 Group class properties and methods in Curl class by visibility 2015-02-15 01:40:42 +07:00
Zach Borboa 2298e08238 Bump patch version 2015-02-15 00:37:47 +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 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 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 6e9bdf9817 Implement MultiCurl::setHeader(), MultiCurl::setOpt(), MultiCurl::getOpt() 2015-02-11 07:41:21 +07: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 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 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