Michael Dowling
673b4017f5
Fixing regression introduced when parsing nested XML.
2013-05-08 00:04:38 -07:00
Michael Dowling
6e48b4db00
Cleaning up the MockPlugin
2013-05-01 17:13:13 -07:00
Michael Dowling
c2281ba97b
Fixing redirect responses
2013-04-30 11:30:34 -07:00
Jeremy Lindblom
6f0363f4b7
Fixed two issues with the date formatting logic in Service\Description\SchemaFormatter
2013-04-29 13:19:42 -07:00
Michael Dowling
0f991407bc
Configuration loading now allows remote JSON files. Closes #306 . Preparing for release
2013-04-29 12:50:03 -07:00
Michael Dowling
72aa99df4d
Cleaning up how responses are queued on requests
2013-04-28 17:53:45 -07:00
Michael Dowling
b158adf2bb
Fixing stale-if-error in CachePlugin and mocking CurlExceptions
2013-04-28 16:52:28 -07:00
Michael Dowling
b4b7152102
Adding the ability to queue exceptions for requests with the MockPlugin. Closes #303 .
2013-04-26 12:13:31 -07:00
Michael Dowling
1f024e0e11
Fixing the AsyncPlugin. Closes #304 .
2013-04-24 18:03:59 -07:00
Michael Dowling
026a68286d
Using utf-8 charset for application/x-www-form-urlencoded POST requests
2013-04-24 15:36:24 -07:00
Michael Dowling
9ba6513612
Allowing the setting of multiple POST files for the same key in one call
2013-04-23 14:50:50 -07:00
Michael Dowling
487250f2c6
Better handling of Content-Length and chunked Transfer-Encoding collisions
2013-04-23 12:41:26 -07:00
Michael Dowling
fb039fec6e
Adding test to ensure events are proxied
2013-04-16 13:30:26 -07:00
Michael Dowling
ebad28f026
Removing all the popsicle sticks from sending requests with curl_multi
2013-04-16 02:43:07 -07:00
Michael Dowling
69e3f83717
Fixing how names are added to models. Closes #298
2013-04-15 13:42:27 -07:00
Michael Dowling
e64ff8e8bc
Adding support for CurlFile in PHP 5.5. Closes #296 .
2013-04-13 19:52:36 -07:00
Michael Dowling
5e9b3bfdef
Trying to ucfirst a command when using the service description command factory
2013-04-13 19:24:12 -07:00
Michael Dowling
99c8f279cf
Fixing how errors are aggregated when sending multi transfers. Adding isRedirect() flag to requests.
2013-04-10 16:18:24 -07:00
Michael Dowling
5378566588
Fixing ReadLimitEntityBody::__toString() when the wrapped body is empty
2013-04-08 15:59:52 -07:00
Michael Dowling
de755baecc
Making the default CURLOPT_CONNECTTIMEOUT more forgiving and closer to the default value of 300s
2013-04-08 13:46:42 -07:00
Michael Dowling
cdb1da7d1a
Properly merging URLs and removing dot segments based on RFC 3986 section 5.4. Closes #288 and #289 .
2013-04-08 13:05:09 -07:00
Michael Dowling
6f044c5c7e
Using the Content-Type of the EntityBody if one cannot be determined by the request path
2013-04-06 17:50:51 -07:00
Michael Dowling
863998bbdb
Auto-detecting Content-Type of a request
...
- A Content-Type header will be added to a request automatically based
on the path of the request if a Content-Type header was not
specifically set. Pass `false` to the second parameter of
EntityEnclosingRequest::setBody() to not auto-detect a value.
- Removing default return value of application/octet-stream from
EntityBody::getContentType()
2013-04-06 17:36:57 -07:00
Michael Dowling
8ecb04187f
Adding more connection timeout checks
2013-04-05 10:51:51 -07:00
Michael Dowling
176d928fe4
Renaming additionalProperties to additionalParameters
2013-04-03 13:23:46 -07:00
Michael Dowling
31ccefd2f2
Adding support for additionalProperties for parameters in service descriptions. Addresses #270
2013-04-03 13:23:46 -07:00
Michael Dowling
cfd7f672e8
Improving the CachingEntityBody
...
Fixing the stream size of a caching entity body to allow the size to be
the greater of the buffer or remote stream.
Fixing __toString() to properly combine the buffer and remote stream
Skipping bytes written over the remote stream to emulate how other r/w
PHP streams work (you overwrite bytes, you don't insert bytes and push
out things after it).
Using fstat() for local streams rather than loading streams into memory
and getting the strlen() (previously used for temp streams).
2013-04-03 10:24:33 -07:00
Michael Dowling
1e0a4c1b3e
Adding tests and fixes to the CachingEntityBody decorator
2013-04-02 12:35:09 -07:00
Michael Dowling
c94eaa8f0c
Adding a caching entity body decorator and cleaning up other entity body decorators
2013-04-01 18:22:26 -07:00
Michael Dowling
a59e5a1695
Adding cacert file to phar and more cert validation
...
Addresses #280 .
2013-03-31 23:35:10 -07:00
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
Michael Dowling
4f818c90b2
Adding the ability to create a custom stream class from a stream factory
2013-03-28 12:13:56 -07:00
Jeremy Lindblom
be121121c0
Adding ability to overwrite config params for throw-away clients in the service builder
2013-03-27 12:49:14 -07:00
Brad Feehan
dedaa4c428
Improve "[PARAM] is a required [TYPE]" message
...
This happens when Guzzle is trying to create an error message of the
form "ID is a required integer", but the type is an array (union) of
types rather than a single type in a string.
In PHP 5.4, this causes a notice "array to string conversion", and in
all versions of PHP, the message Guzzle generated reads "ID is a
required Array" (where "Array" is the result of the array-to-string
conversion, almost always not what you want).
2013-03-25 15:23:23 +11:00
David Abdemoulaie
b10a01833e
Adds PSR-3 Log adapter
2013-03-20 11:53:25 -05:00
Gonzalo Ayuso
cd81153711
removed empty parameters form query string in OauthPlugin
2013-03-17 17:37:49 +01:00
Michael Dowling
feaae5dc97
Adding number types to service description schemas. Closes #265 .
2013-03-15 13:26:03 -07:00
Michael Dowling
f2fd4bd43b
Better normalization of User-Agent header when creating requests. Closes #264
2013-03-11 15:42:27 -07:00
Nils Luxton
a29ab1eb32
Single PHP-style array values now parse into array.
2013-03-11 14:20:20 +00:00
Michael Dowling
9c395855b4
Fixing unit tests
2013-03-09 20:14:16 -08:00
Michael Dowling
5075b8271b
Allow the passing of a pre-created context. Cleaning up interfaces. Adding tests.
2013-03-09 20:14:16 -08:00
Michael Dowling
624ead32fb
Preventing infinite recursion when resolving includes. Closes #255
2013-03-06 23:39:08 -08:00
Michael Dowling
d7b9d3cd3a
Using union rather than merge when extending operations and adding tests. This has no effect other than speed improvements because when merging arrays where the key is a string, the last value overwrites the previous. However, this may fix edge cases where someone is defining arrays in their models for some reason.
2013-03-06 23:11:41 -08:00
Michael Dowling
2f4d017aee
Not adding default empty arrays or booleans when parsing XML that is not set. Now more consistent with the request JsonVisitor and API responses can more likely be reused as inputs.
2013-03-06 22:45:25 -08:00
Michael Dowling
e03795e5a6
Adding the ability to serialize and XML payload even if no XML parameters were set.
2013-03-06 22:24:42 -08: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
62f3458277
Adding missing param filtering when visiting response headers
2013-03-03 22:35:49 -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