Commit Graph

229 Commits

Author SHA1 Message Date
Zach Borboa fdbf5ae16f Clean up 2014-05-23 09:20:23 -07:00
Zach Borboa c17e20f535 Merge pull request #59 from Pezmc/patch-1
Update authentication example to include error reason
2014-05-23 09:19:35 -07:00
Pez Cuckow 40acf9c370 Update authentication example to include error reason
Having just spend 10/20 mins trying to figure out what the error meant after copying this example I think it should include the error message by default.
2014-05-23 12:43:24 +01:00
Zach Borboa 0481920ed3 Fix #58: Include PHP_VERSION and curl version in user-agent 2014-05-22 22:28:01 -07:00
Zach Borboa 0fdbff4b8f Fix typo 2014-05-22 21:49:00 -07:00
Zach Borboa 2dd0f70af5 Update Composer file 2014-05-22 21:48:10 -07:00
Zach Borboa 112210a61e Bump version 2014-05-22 21:32:27 -07:00
Zach Borboa 360058c529 Use namespaces 2014-05-22 21:29:24 -07:00
Zach Borboa 66bd2887da Merge branch 'examples'
* examples:
  Add Reddit pics example
2014-05-20 22:08:53 -07:00
Zach Borboa aed7d3e999 Add Reddit pics example 2014-05-20 22:08:46 -07:00
Zach Borboa ee2320ebab Merge branch 'examples'
* examples:
  Add Instagram example
2014-05-20 21:30:53 -07:00
Zach Borboa 63921ac42a Add Instagram example 2014-05-20 21:30:22 -07:00
Zach Borboa 5ea2d04682 Merge pull request #56 from zborboa-google/patch-3
Add CURLFile example to README
2014-05-20 19:53:23 -07:00
zborboa-google 07b362cc2a Add CURLFile example to README 2014-05-20 17:00:09 -07:00
Zach Borboa cdf9e785fd Merge branch 'master' of github.com-php-curl-class:php-curl-class/php-curl-class
* 'master' of github.com-php-curl-class:php-curl-class/php-curl-class:
  Fix response format
2014-05-19 22:19:18 -07:00
Zach Borboa 93cefacdb4 Add Domainr search domain name availability example 2014-05-19 22:17:47 -07:00
Zach Borboa 3105045a59 Merge pull request #54 from zborboa-google/patch-2
Fix response format
2014-05-19 21:53:34 -07:00
zborboa-google 36935e25f5 Fix response format 2014-05-19 16:32:53 -07:00
Zach Borboa 19d320c1ce Add Google+ profile example 2014-05-18 22:32:57 -07:00
Zach Borboa 3ae2049230 Fix syntax error for PHP 5.3 2014-05-18 01:35:13 -07:00
Zach Borboa 55666135af Add YouTube view count example 2014-05-18 01:29:46 -07:00
Zach Borboa 34742ee9e2 Decode atom+xml responses seamlessly 2014-05-18 01:16:37 -07:00
Zach Borboa e632e1b4af Add MailChimp subscribe email address example 2014-05-17 11:12:09 -07:00
Zach Borboa 88f62fbc0e Add Flickr upload photo example 2014-05-17 04:11:28 -07:00
Zach Borboa 4d6f705f8f Add Gittip example 2014-05-16 23:52:56 -07:00
Zach Borboa 15a121c0e1 Clean up 2014-05-16 23:37:03 -07:00
Zach Borboa 78091d56a0 Make password optional when using basic authentication 2014-05-16 23:31:31 -07:00
Zach Borboa b6b3b2ed76 Reorder and add xml content-type tests 2014-05-15 22:39:33 -07:00
Zach Borboa 61964a99fd Merge branch 'master' of github.com-php-curl-class:php-curl-class/php-curl-class
* 'master' of github.com-php-curl-class:php-curl-class/php-curl-class:
  Add Github Gist example
2014-05-15 22:16:16 -07:00
Zach Borboa 96c076c5f5 Add additional content-type tests 2014-05-15 19:16:15 -07:00
Zach Borboa adcd6768ad Merge pull request #52 from zborboa-google/master
Add Github Gist example
2014-05-14 20:53:13 -07:00
Zach Borboa 79b10f7059 Add Github Gist example 2014-05-14 11:10:47 -07:00
Zach Borboa 069eea878b Fix #43: Add unsetHeader() 2014-05-13 22:06:26 -07:00
Zach Borboa fed0f616f4 Fix #51: Prefer application/x-www-form-urlencoded when POSTing
Thanks @karboom for the report.
2014-05-13 21:46:23 -07:00
Zach Borboa aef528a568 Separate POST Content-Type test 2014-05-13 20:59:49 -07:00
Zach Borboa 063a5b1f01 Merge branch 'master' of github.com-php-curl-class:php-curl-class/php-curl-class
* 'master' of github.com-php-curl-class:php-curl-class/php-curl-class:
  Check all php files during syntax #48
2014-04-29 21:57:32 -07:00
Zach Borboa 6c6ab79511 Update continuous integration to check all PHP files for syntax errors 2014-04-29 21:56:54 -07:00
Zach Borboa f5f660fbfc Merge pull request #49 from zborboa-google/patch-2
Include all php files when checking coding standards (#48)
2014-04-29 21:50:55 -07:00
Zach Borboa 564a0647f5 Fix syntax errors occurring on PHP 5.4, 5.5
Message: "Parse error: syntax error, unexpected 'public' (T_PUBLIC)"
2014-04-29 21:45:06 -07:00
Zach Borboa e5f1dd8bb6 Fix #48: Clean up syntax per PSR2 2014-04-29 16:57:53 -07:00
zborboa-google 67ca41606b Check all php files during syntax #48 2014-04-29 08:47:37 -07:00
Zach Borboa b84acca6b1 Include leading slash when checking for HTTP-Version field (RFC 2616 § 3.1) 2014-04-28 19:50:24 -07:00
Zach Borboa aa71e75cea Fix #47: Add http header redirect parsing test 2014-04-28 19:45:36 -07:00
Zach Borboa c315c5f920 Clean up syntax pursuant to PSR2 2014-04-28 19:22:55 -07:00
bangbang93 257c255e4e fix: HTTP 301 导致$response内有header
$response_header = 'HTTP 301...';
$response = 'HTTP 200.....<body>';
2014-04-28 18:38:00 +08:00
Zach Borboa 7bbed34b16 Use Content-Type header stored in CONTENT_TYPE per RFC 3875
Normalize $_SERVER['CONTENT_TYPE'] with value from $_SERVER['HTTP_CONTENT_TYPE']
2014-04-17 22:14:49 -07:00
Zach Borboa e1ef501ea1 Remove redundant newline checking 2014-04-17 22:08:04 -07:00
Zach Borboa efefd889f1 Fix response parsing when 100 Continue response contains optional headers 2014-04-16 23:05:12 -07:00
Zach Borboa b2435aa554 Move response parsing to separate function 2014-04-16 22:44:32 -07:00
Zach Borboa 75bc90fb99 Add Flickr photo search example 2014-04-15 15:16:57 -07:00