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

934 Commits

Author SHA1 Message Date
Michael Dowling
bc3acaf817 Allowing deeply nested query string values with PHP style aggregation. Closes #27 2012-03-24 17:10:20 -05:00
Michael Dowling
5fd1ae9a82 Updating readme to mention PATCH requests v2.2.3 2012-03-20 11:27:40 -05:00
Michael Dowling
4a0cb15350 [Http] Removing final keyword from client verb methods
Adding PATCH method
Fixing docblock for PUT method
Updating request message parsing to allow for custom verbs
Adding a Content-Length: 0 header when sending an entity enclosing request with no body or post fields.  Closes #34
2012-03-19 22:03:41 -05:00
Michael Dowling
46d50a577c CS updates 2012-03-06 11:13:16 -06:00
Chris Boden
6dd96670d7 [Http] Serializable interface on ArrayCookieJar 2012-03-06 11:10:36 -05:00
Chris Boden
b44740bfed [Http][Tests] Serialization test
TDD for ArrayCookieJar serialization
2012-03-06 11:06:06 -05:00
Julian Higman
37e7e7d6ba Fixed up some indents - spaces instead of tabs. 2012-03-01 21:54:01 +00:00
Julian Higman
55796569dd Added CurlAuthPlugin as a generic plugin for curl auth methods. Removed
BasicAuthPlugin and DigestAuthPlugin.
2012-03-01 11:11:36 +00:00
Julian Higman
e2eb6140bc Added DigestAuthPlugin, based heavily on the BasicAuthPlugin. 2012-02-29 12:25:57 +00:00
Michael Dowling
c91f992c90 Merge pull request #30 from adrianmoya/master
Fixing composer.json
2012-02-26 19:12:21 -08:00
Adrian Moya
f6d4be4fa9 Fixing composer.json 2012-02-25 16:47:37 -04:30
Michael Dowling
4227abdf0b [Http] Using cookies.disable on a params object to disable the cookie plugin for a specific request 2012-02-22 21:47:02 -06:00
stil
8f060140eb Update src/Guzzle/Http/Plugin/CookiePlugin.php 2012-02-22 15:59:24 +01:00
Michael Dowling
71dbeb922b Merge pull request #26 from bobeagan/master
Adding 422 status code (Unprocessable Entity)
2012-02-17 10:13:39 -08:00
Bob Eagan
84e2d78e58 fix #25 - add support for status code 422 (Unprocessable Entity) 2012-02-17 10:59:14 -07:00
Michael Dowling
b992c6f38c Docblock fixes v2.2.2 2012-02-16 23:13:49 -06:00
Michael Dowling
1112aef678 Fixing autoloader. Closes #19 2012-02-16 23:12:59 -06:00
Michael Dowling
6edccc2db8 [Http] Fixing issue related to nested POST data. Resolves #20 v2.2.1 2012-02-13 20:28:33 -06:00
Michael Dowling
f3a5b01236 [Http] Allowing mutliple query string parameters to be used by the same name when using the aggregateUsingDuplicates aggregation function. Addresses #22. 2012-02-13 20:16:32 -06:00
Michael Dowling
41246dfd29 [Http] Parsing query strings manually to allow for multiple values per query string and to not convert decimals and spaces into underscores. Resolves #21 2012-02-13 19:57:47 -06:00
Michael Dowling
b9c04909c7 Adding support for URI templates
[Http] UriTemplate syntax supports {} or {{}} for backwards compatibility.
[Http] Guzzle::inject() now allows {} or {{}} injection for consistency.
[Http] BC: removing Guzzle\Http\Client::inject and now using Guzzle\Http\Client::expandTemplate.
[Http] Can use a custom syntax for URI templates (this might be useful for something like Solr because Solr actually uses {}).
[Http] Adding the ability to inject a custom UriTemplate into clients or just use the default UriTemplate
[Http] You can now use an array when creating a request via a client to specify a URI template and additional template variables.
[Service] Adding support for URI templates to service descriptions.
[Service] [BC] removing Guzzle\Service\Description\ApiCommand::getPath() and replacing it with getUri().
[Service] Use "uri" instead of "path" when creating service descriptions.  However, there is still backwards compatibility with the "path" attribute.
v2.2.0
2012-02-07 23:23:39 -06:00
Michael Dowling
4685aed7ef Updating ApiCommand docblock, correcting filter vs the correct usage, filters 2012-02-02 17:12:22 -06:00
Michael Dowling
5bcdd55618 [Service] Making the integer and float service description types accept numeric strings v2.1.4 2012-01-28 21:12:24 -06:00
Michael Dowling
2ca59100ff Fixing broken test 2012-01-27 10:42:37 -06:00
Michael Dowling
32b1944eba [Common] Fixing monolog log adapter log levels. Adding a check to CurlHandleTest to ensure that the body of a request is sent in a chunked PUT request. 2012-01-27 01:47:59 -06:00
Michael Dowling
eb79d98009 [Http] Adding helper DSL to compare filtered HTTP headers with actual HTTP headers.
Adding more coverage to CurlHandle so that the actual HTTP requests being sent are being checked.
Fixing EntityEnclosingRequests so that the Content-Type is not removed when setting the body of a request.
This allows a custom Content-Type to be specified in a factory method.
2012-01-25 22:38:17 -06:00
Michael Dowling
9a9ae3b6be [Http] Using CURLOPT_INFILESIZE instead of Content-Length headers. This prevents chunked transfer encoding when the Content-Length is known. Adding better test coverage. v2.1.3 2012-01-25 11:26:25 -06:00
Michael Dowling
f619d8fa0e [Http] Fixing issue that caused two Content-Length headers. Adding better test coverage for Content-Length and chunked Transfer-Encoding. Removing some duplicate tests. v2.1.2 2012-01-25 11:02:08 -06:00
Michael Dowling
88ba81fc67 Readability and cyclomatic complexity tweaks 2012-01-25 00:26:08 -06:00
Michael Dowling
dc22f479d0 Removing @ error suppression from CurlHandle and instead checking if the handle is a resource before doing any curl related calls. Making the JsonDescriptionBuilder more readable. v2.1.1 2012-01-24 14:56:04 -06:00
Michael Dowling
53a2bf791c Coding standards v2.1.0 2012-01-23 19:41:45 -06:00
Michael Dowling
f92c049df5 Moving the onComplete handling of Guzzle\Http\Message\RequestInterface to the Symfony EventDispatcher. Subscribe to the request.error event to imlpement your custom error handling. Use $event->stopPropagation() to override the default error handling for unsuccessful responses. request.success is now called any time a request completes successfully. 2012-01-23 18:50:02 -06:00
Michael Dowling
59fd695b4f Using automated links instead of github downloads for phar files 2012-01-23 09:30:01 -06:00
Michael Dowling
109bad53d3 [Http] Adding OAuth 1.0 signature plugin v2.0.5 2012-01-22 17:48:25 -06:00
Michael Dowling
2986444944 [Service] Fixing headers set using an array on commands via the constructor
Removing special handling of ClosureCommand
Throwing an exception when required parameters are missing from a dynamic command
Pass ApiCommand objects to a ClosureCommand in the second argument of the constructor, not in the api_command parameter key
Adding Guzzle\Service\Command\DynamicCommand that will prepare HTTP requests based on an API command. Extend this class for advanced response processing for API commands.
Making DynamicCommand the default command for ApiCommands
Removing the old DynamicCommandFactory and replacing with a simpler ApiCommandFactory
v2.0.4
2012-01-21 19:08:15 -06:00
Michael Dowling
466c28e224 Fixing link to phar in readme 2012-01-21 17:31:21 -06:00
Michael Dowling
7fdae5b984 [Service] Automatically converting command results with an application/json Content-Type to an array 2012-01-20 16:58:30 -06:00
Michael Dowling
829d8ae178 Fixing the cache.revalidate parameter v2.0.3 2012-01-20 00:28:15 -06:00
Michael Dowling
de4fb29c9b [Http] Passing any config settings in a client that start with "cache." to the params of a each request created by the client 2012-01-20 00:05:38 -06:00
Michael Dowling
8aee7da90c [Http] Adding check in CurlMulti to ensure that a request handle exists before operating on it. \
Adding fix so that when a revalidation response returns a 200 response and the response is cacheable, the cached data uses the maximum age of the new response (not the default ttl) \
Adding fix so that when a revalidation response contains updated caching headers, the cached response data is updated \
Added fix so that when a revalidation response is a 404, the cached data is deleted and the 404 exception is thrown \
Renaming the ``cache.revalidate`` options that can be set in the params of a request from "accept" => "never" and "decline" => "always"
2012-01-19 23:43:25 -06:00
Michael Dowling
ac64abc2c0 [Http] Adding more info in the docblock for onComplete methods v2.0.2 2012-01-17 23:37:36 -06:00
Michael Dowling
35bfd843d2 [Http] Adding better coverage to onComplete callbacks in requests. Allowing a response to be overridden in an onComplete callback by returning a Response object in the callback. 2012-01-17 23:35:10 -06:00
Michael Dowling
40027b0fff [Service] Fixing the creation of ClosureCommands when using the DynamicCommandFactory v2.0.1 2012-01-16 16:54:21 -06:00
Michael Dowling
ab4b848dc0 Adding IRC info 2012-01-16 14:12:22 -06:00
Michael Dowling
86d21e1fc5 Fixing the setMockResponse() method for GuzzleTestCase 2012-01-16 11:14:41 -06:00
Michael Dowling
6cf372f928 Fixing composer.json so that it autoloads from the Guzzle\Tests namespace 2012-01-15 12:31:00 -06:00
Michael Dowling
d7e332bb64 [Http] Adding a BatchQueuePlugin to make it easier to queue requests and flush the queue implicitly or explicitly v2.0.0 2012-01-15 10:36:28 -06:00
Michael Dowling
7605ef08a7 Adding requests asynchronously when sending CommandSets 2012-01-15 10:25:12 -06:00
Michael Dowling
c34deef699 Ignore guzzle-min.phar
Fixing .gitignore
2012-01-15 10:24:11 -06:00
Michael Dowling
f2adeb0207 Merge branch 'master' into 2.0b 2012-01-14 13:57:05 -06:00