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

325 Commits

Author SHA1 Message Date
Michael Dowling
17af797f0f Adding a way to explode all headers on glue using the normalize method 2013-02-10 19:30:29 -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
Francesc Rosàs
228b147d4d Don't reuse CurlMulti 2013-02-08 00:04:54 +01:00
Michael Dowling
2f8565b46a Updating headers to split using glue when added 2013-01-31 22:28:06 -08:00
Michael Dowling
d21c5886a3 Removing overly verbose covers annotations from UrlTest 2013-01-31 22:09:55 -08:00
Michael Dowling
f4f154c06f Merge remote-tracking branch 'mpv/master' 2013-01-31 22:06:22 -08:00
David Abdemoulaie
db5b96d08d Fixes edge-cases in Url, QueryString, and Request
Falsy values (the string "0") are now handled properly

e.g. http://foo.com?0, http://foo.com#0
2013-01-31 14:35:20 -06:00
Michael Dowling
cde72ff57a Path for requests must always be absolute. Optimizing Url::__toString(). 2013-01-30 20:51:56 -08:00
David Abdemoulaie
8aabcebef1 QueryString::$prefix is now completely unnecessary - removed 2013-01-30 17:32:43 -06:00
David Abdemoulaie
74b55d0c85 Remove query_prefix from Url parts 2013-01-30 17:29:35 -06:00
David Abdemoulaie
3942ab7eff Merge remote-tracking branch 'origin/master' into refactor-url 2013-01-30 17:17:57 -06: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
6233395918 Fixing redirect response chaining. Closes #223 2013-01-26 00:20:43 -08:00
Ben Parker
5e0ff2ef20 Changes value of CURLOPT_SSL_VERIFYHOST set in Http Client
1 as a value for CURLOPT_SSL_VERIFYHOST is deprecated
in libcurl 7.28.1, recommended value is now 2
2013-01-25 22:40:55 +00:00
David Abdemoulaie
6c19fca9d1 Adding Accept-Encoding header now sets CURLOPT_ENCODING - fixes #217 2013-01-23 20:44:50 -06:00
Jeremy Lindblom
f9e12d2842 Updated client to not clobber user agent when setting default headers 2013-01-23 12:48:34 -08:00
Victor Sollerhed
923f03311e Adding unit test case covering that if you use the Url factory with an empty string, you should get an empty string as result. 2013-01-23 20:04:46 +01:00
Michael Dowling
b9ebd859a7 Added context array to RequestInterface::setState()
Removed curl.last_options from request parameters
Added CurlHandle to request.sent event
CurlException now extends from RequestException rather than
BadResponseException
2013-01-12 21:09:32 -08:00
Michael Dowling
0688c9c598 PHP-CS-Fixer 2013-01-12 13:43:21 -08:00
Michael Dowling
38327cbf4e Adding tests for IoEmittingEntityBody 2013-01-09 23:11:35 -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
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
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
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
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
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
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
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
1ce92aafa7 Fixing cookie header. Closes #166 2012-11-08 08:46:06 -08: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
5bb36b81c2 Implementing redirects in PHP rather than curl 2012-10-30 22:10:58 -07:00
Michael Dowling
4d873b3d30 Fixing Content-Length fixing in Response factory. Closes #155 2012-10-30 10:38:44 -07:00
Michael Dowling
e7c553030a Adding PECL URI template parser
Keeping BC compatibility, but making ParserRegistry as singleton
Using the PECL URI template parser if the extension is loaded
2012-10-28 21:08:38 -07:00
Michael Dowling
b6f286319e Default header glue should be a comma, not a semicolon. 2012-10-15 16:38:39 -07:00
Michael Dowling
c7918d79ca Removing no longer used event from CurlMulti object 2012-10-15 16:38:38 -07:00
Michael Dowling
e3c3684b8a Adding much more control around the expect header. Only sending the expect header by default when the size of the body exceeds 1MB or the body is not seekable. 2012-10-15 16:38:38 -07:00
Michael Dowling
b1287ad737 Moving curl.blacklist to curl.option.blacklist 2012-10-15 16:38:37 -07:00
Michael Dowling
1f06daf71e Adding the ability to control the certificate authority using configuration options on the client 2012-10-15 16:38:37 -07:00
Clay Loveless
38019b9131 Use Mozilla's CA bundle by default for SSL requests, and allow SSL configuration flexibility
PSR-2 fixes
2012-10-15 16:38:37 -07:00
Michael Dowling
dc91935cf6 No longer sending an Accept and Accept-Encoding header by default 2012-10-15 16:38:36 -07:00
Michael Dowling
4cf526336b Changing special options for clients. Adding global command options to service clients. 2012-10-15 16:38:35 -07:00
Michael Dowling
5ab8ab547d Adding previousResponse to responses for tracking redirects 2012-10-15 16:38:35 -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
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