Adrien Brault
e9a5f92d14
Fix DefaultRequestSerializer with array params
2012-11-16 16:29:45 +01:00
Adrien Brault
41de374600
Skip tests that need the pecl uri_template lib when it's not installed
2012-11-16 16:25:30 +01:00
Michael Dowling
6361c1db47
Fixing phar file SSL certificate authority
2012-11-14 11:10:25 -08:00
Michael Dowling
77a7238650
Merge pull request #168 from k-tnk/fix-reseponse-body-with-string-0
...
Fix construction when the response body is just "0"
2012-11-12 11:01:13 -08:00
k-tanaka
ea84300f21
Fix construction when the response body is "0"
...
This commit fixes a bug that Guzzle\Http\Message\Response can't treat response body correctly when it is just "0".
2012-11-12 16:06:56 +09:00
Michael Dowling
28d53c1e8e
Fixing bug in CachePlugin where revalidations caused an infinite loop
2012-11-11 20:58:43 -08:00
Michael Dowling
d54dce1c53
Tagging 3.0.4
v3.0.4
2012-11-11 16:00:24 -08:00
Michael Dowling
183c95155e
Adding a setStream method to StreamInterface. Helps with custom rewind behaviors.
2012-11-11 15:54:57 -08:00
Michael Dowling
c6720a062b
Adding json and xml methods to Response object for easy response parsing
...
Moved json and XML parsing out of DefaultResponseParser and using Response parsing
Removed parseJson method from DefaultResponseParser
Removed Guzzle\Service\Exception\JsonException
2012-11-11 00:34:43 -08:00
Michael Dowling
dcf6f5d753
PHP curl extension does not support reading from the phar stream wrapper, so not using the custom cacert by default when executing through the phar.
2012-11-10 21:04:50 -08:00
Michael Dowling
51a2025e70
Cleaning up cookie validation and adding strict mode to ArrayCookieJar
2012-11-10 20:08:12 -08:00
fogs
5b45664a6c
Cookie: moved list of invalid characters for a cookie name to static array
2012-11-09 20:15:22 +01:00
fogs
100cc84bac
Enhanced validity checking for cookies
...
This patch refactors the validity checking of a cookie from ArrayCookieJar::add() to a dedicated method in Cookie, where it should better belong to. Also, the check for a valid cookie name now includes RFC compliance with regards to control characters.
PHPUnitTest cases were extended accordingly.
2012-11-09 12:03:43 +01:00
Michael Dowling
923837ae12
Adding a static method to Stream to create a hash of a stream. Deprecating static method to create md5 of entity body.
2012-11-08 21:38:36 -08:00
Michael Dowling
861e0831c7
Not allowing empty name or domain. Cleaning up tests.
2012-11-08 20:33:19 -08:00
Michael Dowling
b54c9d818c
Merge remote-tracking branch 'fogs/master'
2012-11-08 20:17:57 -08:00
Michael Dowling
188493f182
Merge branch 'master' of github.com:guzzle/guzzle
2012-11-08 08:46:42 -08:00
Michael Dowling
1ce92aafa7
Fixing cookie header. Closes #166
2012-11-08 08:46:06 -08:00
fogs
a80ea971c3
Fixed PSR-2 compliance of previous changes
2012-11-07 07:02:42 +01:00
Michael Dowling
2e66793612
Merge pull request #163 from fogs/patch-2
...
Update src/Guzzle/Plugin/Cookie/CookieJar/ArrayCookieJar.php
2012-11-06 18:09:06 -08:00
fogs
4b29614acd
Test cases for cookies with value=0 as well as updated value + parameter
2012-11-06 22:26:14 +01:00
fogs
4fcb9d3d96
Fixed bug: domain, name and value may be 0
...
Added nonEmpty() private method to ArrayCookieJar to check for (theoretically) valid values of a cookies domain, name or value. Not sure, if such validation should be placed somewhere else..
Do not use PHP's empty() instead, since empty(0)==true but 0 is a valid value!
2012-11-06 22:23:44 +01:00
fogs
bfd8c861da
Update src/Guzzle/Plugin/Cookie/CookieJar/ArrayCookieJar.php
...
Bug fixed: certain cookie updates were handled incorrectly
Previously, changing the value of a cookie and at the same time a non-identity attribute (e.g. the security flag) resulted in storing the cookie twice. However RFC6265, Section 5.3., Item 11 states, that the old cookie must be replaced.
2012-11-06 20:08:32 +01:00
Michael Dowling
20190c51e7
Updating changelog and version
v3.0.3
2012-11-04 12:31:03 -08:00
Michael Dowling
fc9c9d765a
Adding missing docblock
2012-11-04 11:22:15 -08:00
Fernando Paredes Garcia
76fe594607
fix tests that were troublesome for some reason
2012-11-03 23:13:53 -05:00
Luis Cordova
65d7fb18f9
tests passing but marked one incomplete as it lacks a robust assertion
2012-11-03 22:57:55 -05:00
Luis Cordova
4cf01b983c
polish and clean up of OauthPlugin
2012-11-03 21:32:22 -05:00
Luis Cordova
e1abacc860
wip nonce needs microtime to be unique
2012-11-03 21:32:22 -05:00
Michael Dowling
7ca4b67b40
Merge pull request #159 from pborreli/typos
...
Fixed typos
2012-11-03 16:17:52 -07:00
Ryan Parman
204bf3bba3
Merge pull request #160 from pborreli/patch-1
...
Fixed typo
2012-11-03 10:49:42 -07:00
Pascal Borreli
1383034e29
Fixed typo
2012-11-03 12:33:36 +00:00
Pascal Borreli
c309f229ff
Fixed typos
2012-11-03 00:09:36 +00:00
Michael Dowling
28ce9375ec
Adding ToArrayInterface to Collection and other classes
2012-11-01 21:05:08 -07:00
Michael Dowling
35ea6bb9e8
Reinstating uri_template extension as the default if available
2012-11-01 11:03:45 -07:00
Michael Dowling
892bdac7f1
Fixing a typo and adding comments to the RedirectPlugin
2012-11-01 10:47:14 -07:00
Michael Dowling
96768a954f
Fixing Travis
2012-10-31 23:12:47 -07:00
Michael Dowling
8e5f3b2828
Attempting to fix travis and pear ini file
2012-10-31 23:09:44 -07:00
Michael Dowling
1cf0c8bcb4
Adding the php_ini config to pear when installing via travis
2012-10-31 22:52:03 -07:00
Michael Dowling
8cffe26006
Adding information about unit testing to the readme
2012-10-31 22:47:44 -07:00
Michael Dowling
d22230f1b6
Adding phpunit as dev dep so that it is easier for new users to get up and running
2012-10-31 21:27:06 -07:00
Michael Dowling
9b154eee6a
Not using uri_template extension by default until bug is fixed
2012-10-31 10:53:33 -07:00
Michael Dowling
012fec8697
Finalizing redirect plugin implementation
...
Making it easier to disable redirects on a Request
Making it easier to enable/disable strict redirects
Making it easier to set the maximum number of redirects
Keeping an actual request/response history when a redirect occurs
Fixing relative/absolute URL support of redirect requests
2012-10-31 10:27:56 -07:00
Michael Dowling
138eac1840
Adding the ability to disable redirects per-request
2012-10-30 22:32:20 -07:00
Michael Dowling
fd8515cd92
Adding helper to entity requests to enable strict redirects. More tests.
2012-10-30 22:10:58 -07:00
Michael Dowling
464a059d09
Cleaning up and updating CookiePlugin for new redirect support. Closes #149 .
2012-10-30 22:10:58 -07:00
Michael Dowling
5bb36b81c2
Implementing redirects in PHP rather than curl
2012-10-30 22:10:58 -07:00
Michael Dowling
e533da25ab
Adding rewind functionality to entity bodies
2012-10-30 22:10:58 -07:00
Michael Dowling
d02980ccaa
Merge remote-tracking branch 'simensen/release-single-tag'
2012-10-30 22:10:24 -07:00
Michael Dowling
c6a433c295
Merge remote-tracking branch 'glennpratt/CookiePlugin'
2012-10-30 20:56:53 -07:00