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
Zach Borboa
85cd7e4d90
Add configurable json decoder
2015-01-24 10:26:44 -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
f6b626d83d
Bump version
2015-01-14 22:44:23 -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
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
44469ecfe3
Use key/value when setting header
2014-12-30 23:25:01 -08:00
Zach Borboa
4cb1436983
Fix "Warning: curl_setopt(): cannot represent a stream of type MEMORY as a STDIO FILE*"
2014-12-30 17:04:10 -08:00
Zach Borboa
4bb926c831
Bump version
2014-12-18 10:22:32 -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
247aa78822
Write response headers to a stream resource and make CURLOPT_HEADER optional
2014-12-10 22:27:28 -08:00
Zach Borboa
77bbf1bd14
Clean up capitalization
2014-12-08 00:12:50 -08:00
zborboa-google
9e3801af77
Clean up
2014-12-05 09:25:23 -08:00
Aleksey
413d7ee981
init var $response_header
2014-12-05 15:53:21 +07:00
Zach Borboa
41c42faa0e
Fix #95 : Allow json data with PUT requests
2014-12-04 22:35:39 -08:00
Zach Borboa
1707167890
Merge pull request #94 from zachborboa/master
...
Fix #93 : Add setReferrer() alias setReferer()
2014-11-14 09:49:58 -08:00
Zach Borboa
6df8c93517
Add setReferrer() alias setReferer()
2014-11-14 09:42:44 -08:00
zborboa-google
31932a015f
Clean up
2014-11-05 11:50:47 -08:00
Willian
600a2b0eba
Search Content-Type header with regexp
2014-10-09 18:36:52 -03:00
Willian
e3f8f75065
Add alternative json mimetype
...
I think it may be useful to decode JSON served under JSON API mimetype.
http://jsonapi.org/
2014-10-09 09:45:24 -03:00
Zach Borboa
530c412da5
Add base url property
2014-09-06 16:44:11 -07:00