1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 02:22:57 +01:00

398 Commits

Author SHA1 Message Date
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
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
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
51a2025e70 Cleaning up cookie validation and adding strict mode to ArrayCookieJar 2012-11-10 20:08:12 -08: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
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
fogs
4b29614acd Test cases for cookies with value=0 as well as updated value + parameter 2012-11-06 22:26:14 +01: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
e1abacc860 wip nonce needs microtime to be unique 2012-11-03 21:32:22 -05:00
Pascal Borreli
c309f229ff Fixed typos 2012-11-03 00:09:36 +00: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
c6a433c295 Merge remote-tracking branch 'glennpratt/CookiePlugin' 2012-10-30 20:56:53 -07:00
Michael Dowling
4d873b3d30 Fixing Content-Length fixing in Response factory. Closes #155 2012-10-30 10:38:44 -07:00
Michael Dowling
e7c553030a Adding PECL URI template parser
Keeping BC compatibility, but making ParserRegistry as singleton
Using the PECL URI template parser if the extension is loaded
2012-10-28 21:08:38 -07:00
Michael Dowling
e74cf3ce3e Enabling magic methods by default. Magic methods return result not command. 2012-10-24 20:23:10 -07:00
Adrien Brault
e255685f78 Fix wrong uri construction with unset command parameters 2012-10-24 18:23:53 +02:00
Michael Dowling
412402a3d9 Clients do not require base_url in factory 2012-10-23 21:24:09 -07:00
Glenn Pratt
97da57831e Add failing test for #149, redirected request doesn't have newly added cookies. 2012-10-22 19:14:49 -05:00
Michael Dowling
70f40637fc Allowing models to be used more like Collections. Fixing bug where 0 value keys were ignored 2012-10-22 11:10:37 -07:00
Michael Dowling
ef7fe4f862 Adding a custom AppendIterator to account for PHP bug 2012-10-18 12:37:23 -07:00
Michael Dowling
b8eff43ce8 Adding more options around the debug plugin to specify the stream used to write debug messages 2012-10-15 16:48:15 -07:00
Michael Dowling
987d5396d9 Fixing broken test after removing url encoding 2012-10-15 16:48:14 -07:00
Michael Dowling
b9e63ad028 Fixing a couple bugs introduced when refactoring response parsing 2012-10-15 16:38:40 -07:00
Michael Dowling
522d3b5688 Cleaning up and future-proofing response parsing 2012-10-15 16:38:40 -07:00
Michael Dowling
424905cebf Cleaning up XML visitors
Adding filters to body response
Moving prefix header maps into a container element for outputs
Setting a default false value for missing booleans
2012-10-15 16:38:40 -07:00
Michael Dowling
ed3627f1d9 Adding an option to change the entity body used to store the response body of a command 2012-10-15 16:38:40 -07:00
Michael Dowling
7dd29e0a37 Adding better namespace support to XML serializer. Adding a boolean-string schema format 2012-10-15 16:38:40 -07:00
Michael Dowling
206ecb13c8 Adding format attribute to service description parameters 2012-10-15 16:38:40 -07:00
Michael Dowling
e168692401 Cleaning up XML visitors and tuning descriptions
XML visitors now have data attributes with an xml prefix.
Default arrays are inserted into response models when the value is not
set
Response values are automatically converted to booleans parsing models
Any parameter option can now be retrieved by using getData()
2012-10-15 16:38:40 -07:00
Michael Dowling
a6be53b737 [Service] Adding support for flat XML arrays 2012-10-15 16:38:39 -07:00
Michael Dowling
b6f286319e Default header glue should be a comma, not a semicolon. 2012-10-15 16:38:39 -07:00
Michael Dowling
cb187199f9 Moving the Md5Validator namespace to Md5. Adding a CommandContentMd5Plugin. 2012-10-15 16:38:39 -07:00
Michael Dowling
7c9ce23ee3 Adding Content-Encoding header to outbound requests when a body location sees a Content-Encoding value specified on an EntityBody 2012-10-15 16:38:39 -07:00
Michael Dowling
36a1c7c150 Adding support for mapped headers in input and output. Removing ArrayAccess support from SchemaValidator and instead using a ToArrayInterface to convert objects to arrays. 2012-10-15 16:38:39 -07:00
Michael Dowling
b4a9ab6f91 Renaming the rename attribute of inputs and outputs to sentAs
- sentAs represents how the data is named over the wire
- name represents how the data is represented in the input and output hash
Fixing nested renaming of XML response marshaling
2012-10-15 16:38:39 -07:00
Michael Dowling
c7918d79ca Removing no longer used event from CurlMulti object 2012-10-15 16:38:38 -07:00
Michael Dowling
2672b96685 Fixing the merging of global default command parameters with explicitly specified command parameters 2012-10-15 16:38:38 -07:00
Michael Dowling
1306806aed Removing model_array response processing. Fixing a bug where resolving classes with extended services would not pick up extended classes in the correct order. 2012-10-15 16:38:38 -07:00