1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

723 Commits

Author SHA1 Message Date
Michael Dowling
38327cbf4e Adding tests for IoEmittingEntityBody 2013-01-09 23:11:35 -08:00
Michael Dowling
625cc42b75 Cleaning up the XML serializer
Closes #182
2013-01-09 22:30:31 -08:00
Michael Dowling
c26db3b08a Refactoring CachePlugin to allow for more flexibile cache filtering
Adding canCacheResponse to CanCacheStrategyInterface
Adding integration test to ensure it works
Closes #203
2013-01-09 18:27:39 -08:00
Michael Dowling
06d04ea562 Making service descriptions a bit more flexible
Adding extra data into descriptions when using factory
Adding getData to the ServiceDescriptionInterface
2013-01-09 16:40:11 -08:00
Michael Dowling
10cad60cf1 Moving getPath() from Guzzle\Service\Resource to Guzzle\Common\Collection 2013-01-08 23:10:57 -08:00
Michael Dowling
b5c6eb69b6 Code coverage for Collection 2012-12-30 21:18:31 -08:00
Michael Dowling
74176d3415 Easier exception thrown when sending commands in parallel
Adding CommandTransferException
Cleaning up Exceptions thrown from multi transfer
Closes #197
2012-12-30 14:05:06 -08:00
Michael Dowling
3f51bf4f32 Making it easier to work with exceptions thrown during multi transfers. Addresses #197 2012-12-30 11:25:32 -08:00
Michael Dowling
b327a0c8b7 Cleaning up CurlException messages and adding a getCurlInfo() method 2012-12-30 09:36:33 -08:00
Michael Dowling
4988475a01 Removing hard dep on BackoffPlugin
Making blocking a curl multi loop more generic so it can be used in other places
Closes #196
2012-12-30 09:10:36 -08:00
Michael Dowling
c5a76296ba Cleaning up the Collection object inject method and adding missing test 2012-12-13 14:15:43 -08:00
Michael Dowling
3eb19b745b Adding a response_body location to service descriptions to more easily change the location in which a response entity body is saved 2012-12-10 18:35:58 -08:00
Michael Dowling
8206dbcbfe Allowing a filename to be passed into $request->setResponseBody() 2012-12-10 16:51:40 -08:00
Thomas Ploch
ae04e61fa6 Fixed the dataProvider in the CurlHandleTest.
- dataProvider methods can't mark a test as incomplete, only the
  test method itself can, so I removed .
- Made dataProvider use 'phpunit.xml.dist' over 'phpunit.xml' for
  the test to pass without phing build.
- Fixed corresponding test case to not check for 'application/xml'
  and 'phpunit.xml' but rather 'application/octet-stream' and
  'phpunit.xml.dist'
2012-12-09 09:59:25 +01:00
Michael Dowling
c3a9ce0be6 Adding setErrorResponses() to Operation 2012-12-06 17:20:23 -08:00
Michael Dowling
5afac1063e Adding better mimetype guessing based on file extensions 2012-11-17 21:28:55 -08:00
Michael Dowling
fe867192cf Fixing custom HTTP requests that include a body. Closes #171 2012-11-17 17:34:27 -08:00
Michael Dowling
3a428eef7e Cleaning up XML repsonse processing. Making sure XMLAttribute test tests against actual XML 2012-11-17 16:17:09 -08:00
Michael Dowling
15e909b0ed Merge remote-tracking branch 'dboune/feature/xml-attributes' 2012-11-17 15:54:04 -08:00
Michael Dowling
68a33b6cbb Adding test to ensure URI template arrays are checked without warnings when the array is invalid 2012-11-17 15:29:14 -08:00
Michael Dowling
3f52be9e38 Merge remote-tracking branch 'adrienbrault/fix-uri-param-array' 2012-11-17 15:22:07 -08:00
Michael Dowling
9e340a4e60 Merge pull request #179 from jcarouth/bug-equalsinuri
Parse query vars containing equals sign (=)
2012-11-17 15:10:31 -08:00
Jeff Carouth
ac6bc9d0fb Skip tests when missing uri_template extension
When the PECL uri_template extension is not installed, tests
which rely upon it should be skipped gracefully.
2012-11-16 19:31:06 -06:00
Jeff Carouth
bc239e71f9 Parse query vars containing equals sign (=)
When a query variable contains an equals sign, the QueryString
parsing will strip the equals sign. One example of would be with
base64 encoded strings containing an equals sign at the end for
padding. While this issue can be prevented by simply urlencoding
the URL, cURL, for example, handles this gracefully.
2012-11-16 19:27:07 -06:00
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
Damian Boune
c638b33883 Add test for attribute support in xml responses 2012-11-14 23:39:11 -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
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