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

209 Commits

Author SHA1 Message Date
Jeremy Lindblom
f9e12d2842 Updated client to not clobber user agent when setting default headers 2013-01-23 12:48:34 -08: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
Michael Dowling
4e59b5404f Adding a much more robust backoff plugin 2012-10-15 16:37:49 -07:00
Michael Dowling
b110d184c6 Fixing broken test 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
Glenn Pratt
fffc167cce Fixes #145: Match .prefix cookied domain names to parent, block subdomain match of TLD cookies except .local. 2012-10-15 17:40:51 -05:00
Michael Dowling
d23fabc762 [OAuth] Removing token and token_secret from required params. Only adding to auth header if a value is set. Closes #143 2012-09-30 01:18:07 -07:00
Michael Dowling
e6fe489fe8 [Http] Adding the ability to remove POST parameters from OAuth signatures. Closes #135 2012-09-29 18:30:46 -07:00
Felix Jodoin
cee0805d10 fixes Request::getInfo for when curl.debug is disabled 2012-09-25 14:49:13 +00:00
Michael Dowling
244c61eceb Hardening request and response processing to account for missing parts 2012-09-20 13:28:06 -07:00
Michael Dowling
46d50a31cc Stripping out the path to a file in the Content-Disposition of a POST file. Addresses #55. 2012-09-20 11:31:33 -07:00
Michael Dowling
2fa1b69eac [Http] Cookie fix now uses the ParserRegistry. Cleanin up. 2012-09-13 11:02:51 -07:00
Gordon Franke
982dcbfab5 use CookieParser for request::getCookies 2012-09-13 15:47:24 +02:00
Michael Dowling
063e0e3a0d PHP-CS-Fixer fixes to remove unused use statements and extra empty lines 2012-09-02 12:01:34 -07:00
Herman Radtke
d1e001ede7 Not all HTTP Responses include text status
Many RESTful frameworks omit the text status from the header. That
provides a response like "HTTP/1.1 200". Prevent an Undefined offset
by checking to see how many parts of the status line are provided
before trying to assign them.
2012-08-24 18:52:09 -07:00
Michael Dowling
a7ac55e4d1 [Http] Removing unnecessary __toString from Guzzle\Http\Client
Cleanup and perf tweaks to Guzzle\Http\Client
Using curl info from a curl handle in backoff logger when availble
2012-08-18 16:33:18 -07:00
Michael Dowling
4c909a2612 [Service] Making anything that extends AbstractCommand invokable. Fixing coverage on OauthPlugin. 2012-08-18 14:09:08 -07:00
Michael Dowling
5b0277b0b3 [Http] Allowing request entity bodies to be transferred using a string rather than streamed by setting "body_as_string" as a curl option on a request. This gets around the issue where curl cannot rewind the stream on a redirect or challenge due to the inability of PHP to specify a seek or IO callback. Closes #120. 2012-08-14 18:16:47 -07:00