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

941 Commits

Author SHA1 Message Date
Michael Dowling
83a8997158 Implementing toArray() on CookieJar
Adding the ability to create a cookie jar and pass in an array of cookies.
2014-06-07 11:53:47 -07:00
Michael Dowling
7ad15b806f Merge remote-tracking branch 'larowlan/multipart-forms' into fix-multipart-nested 2014-06-04 14:30:46 -07:00
Michael Dowling
6a871f2ba8 Adding a fix to ensure that POST requests can use the json option correctly 2014-06-04 11:17:31 -07:00
floriansemm
9990d52093 failing tests for json post request 2014-06-04 08:35:25 +02:00
Lee Rowlands
7f20c86fb7 Fail demonstrating nested form-fields 2014-06-04 09:02:56 +10:00
Michael Dowling
715a433100 Adding test to ensure adding new message factory options works 2014-06-03 09:43:15 -07:00
Michael Dowling
6503778ae0 Some small HHVM hacks. See #538 2014-05-27 21:58:05 -07:00
Michael Dowling
03e9793efe Added setPort and getPort to RequestInterface.
- Removed request method constants from RequestInterface
- Closes #680
2014-05-27 21:16:50 -07:00
Michael Dowling
dd5eceed5d Adding a json_decode wrapper to functions.php 2014-05-27 10:52:13 -07:00
Michael Dowling
3db1dc3145 Adding the json request option
- Adding the json request option to provide better symmetry
  between request and response APIs.
- Updating the quickstart guide and documentation.
- Closes #674
2014-05-18 12:47:07 -07:00
Jeremy Lindblom
a0146ced57 Extracted the event/listener management portion of the TransactionIterator into a trait. 2014-04-30 13:46:07 -07:00
MarkBaker
71375c1554 Merge remote-tracking branch 'upstream/master' 2014-04-21 23:42:40 +01:00
MarkBaker
b0ede6c7b5 Change persist() to save() and make public, make sessionVar private, and remove unnecessary session header handling and exception trapping in tests 2014-04-19 00:29:34 +01:00
MarkBaker
2ba19b2c8b Use client session to persist the cookie jar 2014-04-18 23:58:24 +01:00
Jeremy Lindblom
33ad112c94 Added an emitter option to the Client 2014-04-17 07:26:16 -07:00
Jeremy Lindblom
1fa4f2a232 Updated test Server class to make sure server is started on flush() 2014-04-16 17:33:59 -07:00
Michael Dowling
222323bd6a Using request_fulluri when using a proxy. Closes #632 2014-04-13 12:17:28 -07:00
Michael Dowling
5887a8b13e Adding the ability to set scalars as post fields. Closes #628 2014-04-11 17:42:00 -07:00
Michael Dowling
4f790df279 303 redirects should not use POST
Closes #618
2014-04-02 22:08:43 -07:00
David Thalmann
576832ab7a Fixes #619 : HTTP Status Code is also Exception code 2014-04-02 22:07:12 +02:00
Michael Dowling
dc841699e0 Adding the batch() convenience function and restructuring the event format for sendAll() 2014-03-29 15:21:56 -07:00
Michael Dowling
e235644d18 Adding testing docs 2014-03-24 21:10:05 -07:00
Michael Dowling
3472f1fb68 Renaming (g|s)etDefaultValue() to (g|s)etDefaultOption() 2014-03-24 19:44:55 -07:00
Michael Dowling
d3943ce1e3 Adding support for HTTP_PROXY and HTTPS_PROXY 2014-03-24 19:00:23 -07:00
Michael Dowling
5a90f97e28 Adding the ability to control the curl_multi select timeout using an envrionment variable 2014-03-24 17:00:15 -07:00
Michael Dowling
78bb8c1420 Ensuring the mock adapter reads the request body and emits a headers event 2014-03-23 15:52:24 -07:00
Michael Dowling
92a11623af Adding perf test to makefile 2014-03-23 10:53:34 -07:00
Michael Dowling
7b257eb0fb Making the test server static and adding Makefile 2014-03-22 22:05:45 -07:00
Michael Dowling
d4e897936c Renaming getDefaults() to getDefaultValue() 2014-03-21 16:54:06 -07:00
Michael Dowling
b30ce5d514 Making clients more immutable
- Removing getConfig() and setConfig() from clients to avoid confusion around
  whether things like base_url, message_factory, etc should be able to be
  retrieved from getConfig() or modified using setConfig().
- Adding getDefaults() and setDefaultValue() to customize default request
  options of a client.
- Updating Url class to check if a scheme and host are set before adding
  ":" and "//". This allows empty Url (e.g., "") to be serialized as "".
- Removing dead code from Url class.
- Adding a functions.php function for get_path and set_path so that these
  functions can be used on regular PHP arrays. Collection now proxies to these
  functions when Collection::(get|set)Path() is called.
- Resolves #599.
2014-03-21 12:37:32 -07:00
Michael Dowling
beaeeb368f Suppressing warnings when unable to parse XML. Closes #602 2014-03-21 10:25:55 -07:00
Michael Dowling
4124f9019e Fixing two failing tests 2014-03-20 20:39:52 -07:00
Michael Dowling
c1f23e10f3 Updating curl adapter to use callable curl factories 2014-03-19 14:42:35 -07:00
Michael Dowling
3110976dfd Adding the ability to specify sendAll event priorities
- Adding optional priorities to sendAll events.
- Adding documentation on sendAll options.
2014-03-18 21:38:27 -07:00
Michael Dowling
b9801df819 Adding the ability to specify custom stream context options and documentation on passing stream and curl options. 2014-03-17 21:56:15 -07:00
Michael Dowling
c4d5dd12c7 Updating functions to use snake_case to match PHP's idioms 2014-03-16 20:09:33 -07:00
Michael Dowling
c8380b37f4 Cleaning up after merge 2014-03-15 15:45:56 -07:00
Michael Dowling
73cb9228fe Merge branch 'guzzle4'
Conflicts:
	build.xml
	docs/_downloads/guzzle-schema-1.0.json
	docs/_templates/index.html
	docs/http-client/client.rst
	docs/http-client/request.rst
	docs/iterators/guzzle-iterators.rst
	docs/plugins/cache-plugin.rst
	docs/plugins/creating-plugins.rst
	docs/webservice-client/guzzle-service-descriptions.rst
	docs/webservice-client/webservice-client.rst
	phar-stub.php
	phing/build.properties.dist
	phing/imports/dependencies.xml
	phing/imports/deploy.xml
	phing/tasks/GuzzlePearPharPackageTask.php
	phing/tasks/GuzzleSubSplitTask.php
	src/Guzzle/Cache/CacheAdapterFactory.php
	src/Guzzle/Common/Exception/ExceptionCollection.php
	src/Guzzle/Common/Version.php
	src/Guzzle/Http/Client.php
	src/Guzzle/Http/Curl/CurlMulti.php
	src/Guzzle/Http/Curl/CurlMultiProxy.php
	src/Guzzle/Http/Exception/BadResponseException.php
	src/Guzzle/Http/Message/EntityEnclosingRequest.php
	src/Guzzle/Http/Message/EntityEnclosingRequestInterface.php
	src/Guzzle/Http/Message/Header/HeaderCollection.php
	src/Guzzle/Http/Message/PostFile.php
	src/Guzzle/Http/Message/PostFileInterface.php
	src/Guzzle/Http/Message/Request.php
	src/Guzzle/Http/Message/RequestFactory.php
	src/Guzzle/Http/Message/Response.php
	src/Guzzle/Http/QueryString.php
	src/Guzzle/Http/RedirectPlugin.php
	src/Guzzle/Iterator/composer.json
	src/Guzzle/Parser/Cookie/CookieParser.php
	src/Guzzle/Plugin/Async/AsyncPlugin.php
	src/Guzzle/Plugin/Backoff/BackoffPlugin.php
	src/Guzzle/Plugin/Cache/DefaultRevalidation.php
	src/Guzzle/Plugin/Cookie/Cookie.php
	src/Guzzle/Plugin/Cookie/CookieJar/ArrayCookieJar.php
	src/Guzzle/Plugin/ErrorResponse/ErrorResponsePlugin.php
	src/Guzzle/Plugin/Log/LogPlugin.php
	src/Guzzle/Plugin/Md5/Md5ValidatorPlugin.php
	src/Guzzle/Plugin/Mock/MockPlugin.php
	src/Guzzle/Service/Client.php
	src/Guzzle/Service/Command/AbstractCommand.php
	src/Guzzle/Service/Command/DefaultRequestSerializer.php
	src/Guzzle/Service/Command/DefaultResponseParser.php
	src/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php
	src/Guzzle/Service/Command/LocationVisitor/Response/JsonVisitor.php
	src/Guzzle/Service/Description/Parameter.php
	src/Guzzle/Service/Description/SchemaValidator.php
	src/Guzzle/Service/Resource/Model.php
	src/Guzzle/Stream/PhpStreamRequestFactory.php
	tests/Guzzle/Tests/Common/Exception/ExceptionCollectionTest.php
	tests/Guzzle/Tests/GuzzleTestCase.php
	tests/Guzzle/Tests/Http/ClientTest.php
	tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php
	tests/Guzzle/Tests/Http/Curl/CurlMultiProxyTest.php
	tests/Guzzle/Tests/Http/Message/PostFileTest.php
	tests/Guzzle/Tests/Http/Message/RequestFactoryTest.php
	tests/Guzzle/Tests/Http/Message/RequestTest.php
	tests/Guzzle/Tests/Http/Message/ResponseTest.php
	tests/Guzzle/Tests/Http/QueryStringTest.php
	tests/Guzzle/Tests/Http/RedirectPluginTest.php
	tests/Guzzle/Tests/Http/UrlTest.php
	tests/Guzzle/Tests/Parser/Cookie/CookieParserProvider.php
	tests/Guzzle/Tests/Plugin/Cache/DefaultRevalidationTest.php
	tests/Guzzle/Tests/Plugin/Cookie/CookieJar/ArrayCookieJarTest.php
	tests/Guzzle/Tests/Plugin/Cookie/CookiePluginTest.php
	tests/Guzzle/Tests/Plugin/Cookie/CookieTest.php
	tests/Guzzle/Tests/Plugin/Mock/MockPluginTest.php
	tests/Guzzle/Tests/Service/ClientTest.php
	tests/Guzzle/Tests/Service/Command/CommandTest.php
	tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/JsonVisitorTest.php
	tests/Guzzle/Tests/Service/Command/OperationResponseParserTest.php
	tests/Guzzle/Tests/Service/Description/ParameterTest.php
	tests/Guzzle/Tests/Stream/PhpStreamRequestFactoryTest.php
	tests/Guzzle/Tests/TestData/description/bar.json
	tests/Guzzle/Tests/TestData/description/baz.json
	tests/Guzzle/Tests/TestData/description/recursive.json
	tests/bootstrap.php
2014-03-15 14:54:52 -07:00
Michael Dowling
23e61ccea6 Fixing curl error test 2014-03-12 13:45:13 -07:00
Michael Dowling
85422b5bd5 Adding shims that emit deprecations for the really common event method names 2014-03-12 13:44:27 -07:00
Michael Dowling
761304764e Moving streams to its own package 2014-03-11 19:35:51 -07:00
Michael Dowling
1abcf6c2df Adding a check to ensure that an exception cannot have the emitted error setting set to false 2014-03-11 10:43:05 -07:00
Michael Dowling
5716a446ef Removing HasHeadersInterface to make more like the PSR 2014-03-11 00:25:54 -07:00
Michael Dowling
886b03c5b8 Cleaning up PostFile
- Removing dependency on HasHeadersTrait and making interface smaller.
- Cleaning up some POST classes.
- Updating MultipartBody to use new interface.
2014-03-11 00:17:44 -07:00
Michael Dowling
d6117c9626 Adding remaining PSR method 2014-03-10 23:27:20 -07:00
Michael Dowling
32f7bb8ba0 Adding first and last dynamic event priorities 2014-03-09 20:54:03 -07:00
Michael Dowling
fa3590e105 Sanitizing the event system and priorities
- Adding constants for common event landmarks.
- Reorganizing the priorities of events.
- Renaming PrepareRequestBody to Prepare
- Renaming several other event methods to be consistent.
- Some code cleanup.
2014-03-09 19:59:34 -07:00
Michael Dowling
a9d93d2733 Fixing race condition that failed to drain the queue
Adding a simple test to ensure requests are sent from a queue
Removing conditional as it will already throw an exception if the transaction is not found in the batch context
Adding a test to see if iterator functionality has changed by version
Setting error priority higher
2014-03-09 18:53:48 -07:00
Michael Dowling
69f358ae43 Cleaning up MultiAdapter
Adding a test to ensure that a HeadersEvent is emitted for a HEAD request
Simplifying test
Using a LimitIterator
2014-03-09 14:24:35 -07:00
Michael Dowling
61ea0f7ebf Better assertions in test 2014-03-09 11:32:21 -07:00