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
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
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
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
Zach Borboa
9da8277926
Add example implementation of MultiCurl::addGet() with MultiCurlTest tests
2015-02-10 10:21:57 -08:00
Zach Borboa
2e8ccceae3
Remove support for parallel requests
2015-02-09 01:48:32 -08:00
Zach Borboa
bbdba6d907
Fix #86 : Add default timeout of 30 seconds
2015-02-08 23:13:25 +07:00
Zach Borboa
ac7adb503c
Fix callbacks for curl multi requests; Add beforeSend() tests
2015-01-26 23:23:21 -08:00
Zach Borboa
85cd7e4d90
Add configurable json decoder
2015-01-24 10:26:44 -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
965f32cd80
Clean up unit tests
2014-12-31 01:58:40 -08:00
Zach Borboa
80adf0f3a1
Add json encoding when request header Content-Type is set to application/json
2014-12-31 01:14:18 -08:00
Zach Borboa
5d7d25ac15
Use CaseInsensitiveArray when setting headers
2014-12-31 00:19:11 -08:00
Zach Borboa
2fb88ffde0
Fix "Operation not permitted" (PHP 5.3) and "Permission denied" (HHVM) errors
2014-12-11 21:50:25 -08:00
Zach Borboa
001cfd646b
Add CURLOPT_RETURNTRANSFER reset when using download method; Fix download method test failing on PHP 5.3 due to different png files being created on the server and client when using imagepng().
2014-12-11 21:02:19 -08:00
Zach Borboa
63f47648b0
Fix #98 : Implement download() method
2014-12-11 10:20:41 -08:00
Zach Borboa
ffaeafe12c
Remove alternate expected response for hhvm; Remove hhvm from allow_failures
2014-12-10 22:41:25 -08:00
Zach Borboa
247aa78822
Write response headers to a stream resource and make CURLOPT_HEADER optional
2014-12-10 22:27:28 -08:00
Zach Borboa
0bab1dd46c
Add test for parsing empty response ( #96 )
2014-12-07 21:51:27 -08:00
Zach Borboa
41c42faa0e
Fix #95 : Allow json data with PUT requests
2014-12-04 22:35:39 -08:00
Zach Borboa
6df8c93517
Add setReferrer() alias setReferer()
2014-11-14 09:42:44 -08:00
Zach Borboa
530c412da5
Add base url property
2014-09-06 16:44:11 -07:00
Zach Borboa
e17f854555
Make $instance->url public; Remove getUrl(), setUrl()
2014-09-06 16:31:01 -07:00
Zach Borboa
896eb5ebdf
Include querystring data in the url for the appropriate HTTP request methods
2014-09-03 23:08:29 -07:00