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

48 Commits

Author SHA1 Message Date
Michael Dowling
ab8d35fbdf Adding the ability to PURGE requests from the cache. Addresses #241. 2013-03-30 19:18:40 -07:00
Michael Dowling
9da0ac2123 You can now send any EntityEnclosingRequest with POST fields or POST
files and cURL will handle creating bodies
* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest
* POST requests using a custom entity body are now treated exactly like PUT
requests but with a custom cURL method. This means that the redirect
behavior of POST requests with custom bodies will not be the same as POST
requests that use POST fields or files (the latter is only used when
emulating a form POST in the browser).
* Closes #266
2013-03-28 23:48:55 -07:00
Gonzalo Ayuso
cd81153711 removed empty parameters form query string in OauthPlugin 2013-03-17 17:37:49 +01:00
Jonathan Hedstrom
bc183dccd4 Sorting all parameters prior to OAuth signing. 2013-03-06 08:45:51 -08:00
Jonathan Hedstrom
8711d3f829 Adding a test for multi-dimensional arrays. 2013-03-05 17:11:05 -08:00
Michael Dowling
ea77655a11 Adding an ErrorResponse plugin that can throw specific exceptions based on a service description 2013-03-03 13:25:16 -08:00
thewilkybarkid
e884f5a48d Handle stale-if-error directive 2013-02-28 14:15:02 +00:00
thewilkybarkid
76f7287322 Store cached responses for longer, allowing stales to be served 2013-02-27 11:21:20 +00:00
thewilkybarkid
41df91d352 Add Via headers to requests/responses going through the cache plugin 2013-02-25 12:46:24 +00:00
thewilkybarkid
7b10768a4c Add X-Cache and X-Cache-Lookup headers to responses 2013-02-25 12:40:46 +00:00
Michael Dowling
ff6738a028 Refactoring setUserAgent and Removing Guzzle\Http\Utils
Guzzle\Http\Client::setUserAgent() now simply accepts a string as input
2013-02-22 22:07:19 -08:00
Michael Dowling
a8dc1189aa Headers are no longer split on a default glue of "," when adding
Rolls back 2f8565b46ac721259497a39e7f458a720acf9d64
This is necessary to work well with headers with commas (e.g. Date)
2013-02-10 15:16:48 -08:00
Michael Dowling
e290a773bc Fixing infinite loop when using default exponential backoff plugin for 500 responses 2013-02-05 13:38:20 -08:00
Michael Dowling
2f8565b46a Updating headers to split using glue when added 2013-01-31 22:28:06 -08:00
David Abdemoulaie
d0f2aff142 Massive refactoring of Url, QueryString, and Request for RFC3986
TODO: ArrayCookieJar & tests are failing
2013-01-30 17:16:42 -06:00
Michael Dowling
6f9bb726e9 Fixing code coverage annotations 2013-01-13 13:24:44 -08:00
Michael Dowling
e4133557f0 Renaming canCache() to canCacheRequest() 2013-01-13 11:52:55 -08:00
Michael Dowling
0688c9c598 PHP-CS-Fixer 2013-01-12 13:43:21 -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
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
28d53c1e8e Fixing bug in CachePlugin where revalidations caused an infinite loop 2012-11-11 20:58: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
861e0831c7 Not allowing empty name or domain. Cleaning up tests. 2012-11-08 20:33:19 -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
464a059d09 Cleaning up and updating CookiePlugin for new redirect support. Closes #149. 2012-10-30 22:10:58 -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
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
cb187199f9 Moving the Md5Validator namespace to Md5. Adding a CommandContentMd5Plugin. 2012-10-15 16:38:39 -07:00
Michael Dowling
32080ea36d Adding a shortcut for retrieving a debug log plugin to output wire traces to stdout 2012-10-15 16:38:36 -07:00
Michael Dowling
c4c5c95028 Moving Cookie related classes from Guzzle\Http to Guzzle\Plugin\Cookie 2012-10-15 16:38:34 -07:00
Michael Dowling
cf0924471c Completely rethinking service descriptions
Getting rid of the Validation component and "Inspector"
Removing custom types from service descriptions
Using a JSON schema based approach to validation and normalization
Adding a lazy building of Parameters for Operaton objects
Using camel case for postFile and postFile
Adding models support to service descriptions
Adding support for $ref overwrites of models registered with ServiceDescriptions
Adding more meta information to service descriptions
Adding data property to operations
Adding service description property to operations. Adding an XML location used to serialize XML requests.
Restructuring how service description based command requests are serialized and how responses are parsed
Adding JSON response parsers
Adding the ability to skip recursive translations on JSON responses
2012-10-15 16:38:33 -07:00
Michael Dowling
0141b24b04 Cleaning up backoff code and adding an additional test. Fixing bug that caused any ApiParam with a filter to be set to an empty string, which caused the parameter to be applied to a request 2012-10-15 16:37:51 -07:00
Michael Dowling
523af11d2f [Http] Making the type of HTTP response checks faster
Using a default log template when null or an empty string is provided
Removing the next and makesDecision methods from the backoff strategy interfaces.
Using call_user_func in callback strategies so that array() callbacks are supported.
Listening for request.sent with the LogPlugin so that even error responses are logged.
Renaming getExponentialBackoffInstance to getExponentialBackoff
2012-10-15 16:37:51 -07:00
Michael Dowling
b61bd91191 Using a Doctrine ArrayCache when no cache is provided to the cache plugin 2012-10-15 16:37:51 -07:00
Michael Dowling
0e54bf303d [Backoff] Fixing the backoff plugin so that there is now a delineation between decision making strategies and calculating strategies
Moving the truncated backoff strategy up in the default exponential backoff chain
2012-10-15 16:37:50 -07:00
Michael Dowling
91f1e3473f [Http] Adding setBody() to Response
Adding a shared MessageFormatter that expands log templates. Using in
LogPlugin and in BackoffLogger.
Making LogPlugin simpler and easier to customize.
2012-10-15 16:37:50 -07:00
Michael Dowling
158e22996b [Cache] Fixing ZF2 cache adapter 2012-10-15 16:37:50 -07:00
Michael Dowling
5429ec0dc3 Adding a more robust and extendable cache plugin 2012-10-15 16:37:50 -07:00
Michael Dowling
2393ca43a1 Cache plugin updates 2012-10-15 16:37:50 -07:00
Michael Dowling
4e59b5404f Adding a much more robust backoff plugin 2012-10-15 16:37:49 -07:00
Michael Dowling
2de3507c53 Renaming ExponentialBackoffPlugin to BackoffPlugin 2012-10-15 16:37:49 -07:00
Michael Dowling
4c12cc079f Working on breaking the project into components each with its own composer.json file 2012-10-15 16:37:49 -07:00