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

575 Commits

Author SHA1 Message Date
Michael Dowling
522fbe0f36 [Http] Adding test to ensure that POST requests with empty POST field arrays are always sent as POST. Closes #110. 2012-07-30 12:22:42 -07:00
Michael Dowling
58d6432726 [Http] Fixing a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body. Closes #112. 2012-07-30 12:15:11 -07:00
Zach Badgett
3b63bf629f Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles to increase performance. 2012-07-30 13:03:53 -06:00
Michael Dowling
64758d8041 [Service] Fixing the resolution of extended parameters when using multiple inheritance 2012-07-27 13:28:47 -07:00
Michael Dowling
8c6bc88bc8 [Service] Adding multiple inheritance to service description commands. Guzzle\Service\Description\ApiCommand now returns an array of arrays for params rather than an array of ApiParam objects. 2012-07-26 11:03:25 -07:00
Michael Dowling
9899cf40cd [Http] Setting the responseBody of a request to null when a request completes (not when a request is set to new). Md5ValidatorPlugin no longer defaults to only validating responses under 2mb. Adding more test coverage around custom response bodies for requests. 2012-07-25 00:15:00 -07:00
Michael Dowling
98c089ef2a Removing the __construct method from the CommandInterface. Fixing instances of ApiCommand that should be ApiInterface. 2012-07-24 21:55:36 -07:00
Michael Dowling
cce95c2324 [Service] Adding an ApiCommandInterface. Adding getParamName() and hasParam() to ApiCommand. 2012-07-24 21:44:07 -07:00
Michael Dowling
dffa97fcb9 [Http] Fixing a case where empty POST requests were sent as GET requests. Closes #107 2012-07-24 13:57:08 -07:00
Michael Dowling
fab426ba74 Tagging 2.8.2 v2.8.2 2012-07-24 11:26:42 -07:00
Dave Marshall
f0ecc3ab65 Fixes #108 - Check array key exists rather than for empty 2012-07-24 16:35:12 +01:00
Michael Dowling
bc6cbc8cd3 [Http] Fixing bug where query string values of 0 were not being set. Closes #108. 2012-07-23 22:50:38 -07:00
Michael Dowling
c76e287134 [Service] Allowing dot notation for class paths in filters attribute of service descriptions 2012-07-23 16:18:01 -07:00
Michael Dowling
698b41e148 Adding Guzzle\\Tests back to composer.json to make it easier to test third part code without needing to modify your bootstrap file 2012-07-23 10:03:23 -07:00
Michael Dowling
171c381c85 Removing Guzzle\\Tests from composer.json and moving it to the test bootstrap file 2012-07-22 15:05:51 -07:00
Michael Dowling
9e0b2113e9 Another content-type fix 2012-07-21 22:43:59 -07:00
Michael Dowling
8aad81db63 One more broken content-type fix 2012-07-21 22:28:46 -07:00
Michael Dowling
7665ac74b2 Updating tests so that they work with the broken behavior of returning text/x-c++ for the content-type of .php scripts 2012-07-21 22:26:00 -07:00
Michael Dowling
51884a9402 [Common] Cleaning up Collection 2012-07-21 20:36:52 -07:00
Michael Dowling
5bb5adde61 [Http] Minor perf improvements to QueryString 2012-07-20 19:50:21 -07:00
Michael Dowling
749e063399 Merge remote-tracking branch 'brmatt/parse-plus-as-space-in-querystring' 2012-07-20 19:04:25 -07:00
Michael Dowling
dfa65dd4eb [Service] Not creating a new Collection object each time getRequestHeaders() is called on an AbstractCommand 2012-07-20 19:04:00 -07:00
Matt Button
aeeb31a4ed Treat '+' as encoded space when parsing query string
According to RFC1738 (implemented by urlencode) spaces are encoded as
plus symbols. However, RFC3986 (imeplemented by rawurlencode) states
that spaces should be encoded as '%20'.

When parsing a query string that was encoded with urlencode we should
treat plus symbols as spaces.

fixes #105
2012-07-19 13:50:55 +01:00
Michael Dowling
9f57a33055 Tagging 2.8.1 (small release mainly for composer.json fixes) v2.8.1 2012-07-16 14:08:54 -07:00
Michael Dowling
a50165dce8 Fixing other instances of symfony event dispatcher deps 2012-07-16 10:15:58 -07:00
Michael Dowling
c750e259fb Loosening event dispatcher requirement. Closes #103 2012-07-16 09:58:47 -07:00
Michael Dowling
c669aa0c7a [Http] Fixing POST redirects so that they are followed with a GET (use the undocumented CURLOPT_POSTREDIR option to change this behavior). Closes #23 2012-07-15 23:36:46 -07:00
Michael Dowling
86bb222fe7 Updating changelog for 2.8.0. Updating composer.json for subtree splits. v2.8.0 2012-07-15 17:21:47 -07:00
Michael Dowling
0805340b64 Ignoring .subsplit 2012-07-15 16:16:49 -07:00
Michael Dowling
58693edbf9 Minor cleanup 2012-07-15 15:07:59 -07:00
Michael Dowling
c4a4560c12 Merge remote-tracking branch 'benmatselby/command-based-override-config' 2012-07-15 14:54:43 -07:00
Michael Dowling
1036039220 [Http] Minor perf improvement to CurlMulti 2012-07-15 14:46:42 -07:00
Ben Selby
f1b55b27dc Allow configuration to be specified on a service descriptor
An example of this would be:
<param name="curl.CURLOPT_CONNECTTIMEOUT" default="100" />

This would override the configuration set by the instantiation:

new Client(
    'http://www.example.com',
    array('curl.CURLOPT_CONNECTTIMEOUT' => 100)
);
2012-07-13 22:48:09 +01:00
Michael Dowling
06a1cd73af [Service] Streamlining AbstractCommand::process 2012-07-12 17:53:38 -07:00
Michael Dowling
db66916895 [Parser] Values set to null are treated as undefined. Minor short circuit if improvement to Guzzle\Http\Url 2012-07-12 11:11:39 -07:00
Michael Dowling
56c7fa0aeb [Parser] Not urldecoding cookie values by default. Addresses #99. 2012-07-11 00:10:16 -07:00
Michael Dowling
7c1c9c6509 Fixing composer.json by just requiring symfony event dispatcher beta 2 2012-07-10 23:57:24 -07:00
Michael Dowling
63838c0d78 Attempting to fix composer round 2 2012-07-10 23:49:10 -07:00
Michael Dowling
f9ef93ac7b Attempting to fix composer.json (for now) 2012-07-10 23:20:52 -07:00
Michael Dowling
6716de4edb [Service] Adding the ability to specify curl options in commands using an array called curl.options. Closes #100 2012-07-10 23:00:07 -07:00
Michael Dowling
c8b3c4c3d0 [Http] Cleaning up CurlHandle, EntityEnclosingRequestInterface, and AbstractMessage
The responsibility of setting a Content-Length of 0 for an empty EntityEnclosingRequest is now handled in the setState method of an EntityEnclosingRequest
Removing the action argument from Guzzle\Http\Message\AbstractMessage::changedHeader()
Passing an array of Cache-Control data in the Cache-Control header instead of the unnecessary implode
Removing process as an argument for Guzzle\Http\Message\EntityEnclosingRequest::addPostField
Enforcing the decision of whether or not to URL encode POST data in the CurlHandle class
Closes #95
2012-07-08 22:39:08 -07:00
Michael Dowling
7048755299 [Http] Refactoring QueryString
- Adds a trailing equal sign for empty values by default (e.g. ?acl=)
- Set blank values (e.g. ?acl) by setting the value to QueryString::BLANK
- Combined URL encoding into a single option rather than separate
  settings for fields and values
- Changed isEncodingValues() and isEncodingFields() to isUrlEncoding()
- Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool)
- Changed the aggregation functions of QueryString to be static methods
- Can now use fromString() with querystrings that have a leading ?
2012-07-08 17:17:07 -07:00
Michael Dowling
6343f401dc Merge remote-tracking branch 'weaverryan/handle_empty_parameter_values' 2012-07-08 15:34:38 -07:00
Michael Dowling
0a67d4d360 [Http] Cleaning up and performance tuning CurlMuli and the CurlMultiInterface 2012-07-08 15:28:55 -07:00
Ryan Weaver
3201541783 Fix for a situation where a "blank" (e.g. null, false) value for a query string parameter resulted in a missing "=":
Suppose that we set the following data on a QueryString object:

array(
    'foo' => null,
    'bar' => 'test',
)

The query string before and after this change would be:

BEFORE: ?foo&bar=test
AFTER:  ?foo=&bar=test

The importance is that before the lack of "=" resulted made it look like there was only a single parameter called "foo&bar" with a value of "test" (i.e. the bar parameter is joined with foo).
2012-07-08 13:32:45 -05:00
Michael Dowling
0d07dcde45 Merge pull request #94 from gimler/patch-2
Fix composer
2012-07-06 10:45:29 -07:00
Gordon Franke
b2b76b210b change zend framework2 to beta4 the 2.0.* doesn't work;
use symfony event-dispatcher 2.1.0beta1 for tests ```tests/Guzzle/Tests/Mock/MockObserver.php``` use the Event::getName() method only available in 2.1;
update zend framework1 to latest version;
2012-07-06 15:26:10 +02:00
Michael Dowling
992e67009d Updating changelog. Fixing composer.json for guzzle/http so that it requires parser. v2.7.2 2012-07-02 14:04:37 -07:00
Michael Dowling
feb5ac5a0c [Common] Improving the batch interfaces to better separate divisors from
transfers.
BC: Removing count from batch and replacing it with isEmpty()
Batch divisors can now return iterators or arrays
2012-07-02 13:40:17 -07:00
Michael Dowling
142e2460f2 [BC] Moving things around for subtree splits.
Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser.
Adding composer.json files for each subtree split
Fixing failing curl test
2012-06-29 16:13:43 -07:00