341 Commits

Author SHA1 Message Date
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
Zach Borboa 7ca96aadcc Merge pull request #114 from zachborboa/master
Clean up unit tests
2014-12-31 02:01:12 -08:00
Zach Borboa 965f32cd80 Clean up unit tests 2014-12-31 01:58:40 -08:00
Zach Borboa 0dbe550f4b Merge pull request #113 from zachborboa/master
Add json encoding when request header Content-Type is set to application/json
2014-12-31 01:19:17 -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 94bcef7c74 Merge pull request #112 from zachborboa/master
Use CaseInsensitiveArray for request headers
2014-12-31 00:25:17 -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 cc66aefc26 Merge pull request #111 from zachborboa/master
Fix #110: "Warning: curl_setopt(): cannot represent a stream of type MEMORY as a STDIO FILE*"
2014-12-30 22:26:43 -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 5ac7f6f717 Merge pull request #109 from whit537/patch-1
Update Gratipay example
2014-12-24 00:52:45 -05:00
Chad Whitacre 1a0e9c1f4b catch up with rename
Filename and envvars were updated, but platform and URL weren't.
2014-12-23 14:52:49 -05:00
Zach Borboa 4bb926c831 Bump version 2.1.1 2014-12-18 10:22:32 -08:00
Zach Borboa 7ff8cc3507 Merge pull request #103 from zachborboa/master
Update README with download() and setUserAgent() examples
2014-12-11 22:43:13 -08:00
Zach Borboa 11e0cb48aa Update README with download() and setUserAgent() examples 2014-12-11 22:42:16 -08:00
Zach Borboa f960ff1cd7 Merge pull request #102 from zachborboa/master
Add download example to README
2014-12-11 22:35:35 -08:00
Zach Borboa df49e9950c Add download example to README 2014-12-11 22:30:29 -08:00
Zach Borboa f72733eb69 Clean up 2014-12-11 22:14:04 -08:00
Zach Borboa 99f39d1934 Merge pull request #101 from zachborboa/master
Fix #98: Implement download() method
2014-12-11 22:00:54 -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 7c2245fdab Merge pull request #100 from zachborboa/master
Remove alternate expected response for hhvm; Remove hhvm from allowed failures
2014-12-10 23:16:19 -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 bfef4a7936 Merge pull request #99 from zachborboa/master
Write response headers to a stream resource and make CURLOPT_HEADER optional
2014-12-10 22:36:49 -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
Zach Borboa 0bab1dd46c Add test for parsing empty response (#96) 2014-12-07 21:51:27 -08:00
Zach Borboa bf9d535978 Merge pull request #97 from zborboa-google/patch-6
Clean up
2014-12-05 13:50:34 -08:00
zborboa-google 9e3801af77 Clean up 2014-12-05 09:25:23 -08:00
Zach Borboa cab0cc0b44 Merge pull request #96 from akeinhell/master
Initialize variable $response_header
2014-12-05 08:04:08 -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
Zach Borboa ab417af686 Merge pull request #92 from zborboa-google/patch-6
Clean up
2014-11-05 12:00:24 -08:00
zborboa-google 31932a015f Clean up 2014-11-05 11:50:47 -08:00
Zach Borboa c411953791 Merge pull request #90 from zborboa-google/patch-4
Remove unneeded break
2014-10-28 17:47:20 -07:00
Zach Borboa fc8cf3b952 Merge pull request #91 from zborboa-google/patch-5
Rename Google Maps example
2014-10-28 17:47:05 -07:00
zborboa-google 8c6ab80c57 Rename Google Maps example 2014-10-28 15:10:31 -07:00
zborboa-google fab1fa3285 Remove unneeded break 2014-10-28 15:09:37 -07:00
Zach Borboa ba938c24ed Add YouTube example to list videos in a playlist 2014-10-27 18:14:07 -07:00
Zach Borboa e3e887af6f Merge pull request #89 from zachborboa/master
Remove PHP 5.6 from allowed failures
2014-10-21 21:55:00 -07:00
Zach Borboa c47996cbba Remove PHP 5.6 from allowed failures 2014-10-21 21:49:54 -07:00