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

99 Commits

Author SHA1 Message Date
Michael Dowling
ebbae74993 Removing overly verbose @covers annotations from unit tests 2013-05-29 22:53:59 -07:00
Michael Dowling
ede507c326 Cleaning up EntityEnclosingRequestInterface 2013-05-29 22:10:32 -07:00
Michael Dowling
c8f0e96a9d Removing header blacklisting. This is not needed now that Accept, Expect, etc can be managed via Guzzle and it caused more issues than benefits (e.g. signing requests would create an invalid signature) 2013-05-29 22:10:32 -07:00
Michael Dowling
598567d166 Restructuring internal header structure, adding granular headers, move HeaderComparision because it is only for testing, and using a header collection 2013-05-29 22:10:31 -07:00
Michael Dowling
b79634f189 Deprecating ZF1 log and cache adapters.
Removing ZF1 tests that required some hacky tests and composer settings
CS fixes
2013-05-10 21:16:12 -07:00
Michael Dowling
15abfe65e2 Removing some circular references
Better cleanup of CurlMulti handles on exceptions
curl.callback.progress emits a resource rather than CurlHandle
Removing curl_handle and curl_multi debug Request params
2013-05-09 15:34:47 -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
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
e64ff8e8bc Adding support for CurlFile in PHP 5.5. Closes #296. 2013-04-13 19:52:36 -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
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
8ecb04187f Adding more connection timeout checks 2013-04-05 10:51:51 -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
f2fd4bd43b Better normalization of User-Agent header when creating requests. Closes #264 2013-03-11 15:42:27 -07:00
Michael Dowling
b723c4d35b Moving the request param curl.emit_io to curl options under emit_io 2013-02-23 14:05:13 -08:00
Michael Dowling
ff6738a028 Refactoring setUserAgent and Removing Guzzle\Http\Utils
Guzzle\Http\Client::setUserAgent() now simply accepts a string as input
2013-02-22 22:07:19 -08:00
Michael Dowling
3f8568c76b Removing unnecessary CURLOPT_USERAGENT settings 2013-02-21 16:38:58 -08:00
Francesc Rosàs
228b147d4d Don't reuse CurlMulti 2013-02-08 00:04:54 +01:00
David Abdemoulaie
6c19fca9d1 Adding Accept-Encoding header now sets CURLOPT_ENCODING - fixes #217 2013-01-23 20:44:50 -06: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
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
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
5bb36b81c2 Implementing redirects in PHP rather than curl 2012-10-30 22:10:58 -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
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
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
4c12cc079f Working on breaking the project into components each with its own composer.json file 2012-10-15 16:37:49 -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
063e0e3a0d PHP-CS-Fixer fixes to remove unused use statements and extra empty lines 2012-09-02 12:01:34 -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
Michael Dowling
8f0674dcb3 Fixing broken DELETE test 2012-08-12 19:38:53 -07:00
Michael Dowling
538de90a86 [Http] DELETE requests can now send along an entity body.
Retrieving a DELETE request from a client or request factory will now
return an EntityEnclosingRequestInterface object.
Cleaned up the CurlHandle::factory method.
Closes #118 (thanks to @zachbadgett for inspiration)
2012-08-12 18:55:12 -07:00
Michael Dowling
ce8cdd8f67 [Http] Attempting to seek to the beginning of a stream when sending EntityEnclosingRequest objects so that they can be reused without having to seek manually 2012-08-08 17:16:55 -07:00
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
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
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
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