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
Michael Dowling
4bec7788d4
Adding BatchContext tests
2014-03-09 10:42:43 -07:00
Michael Dowling
a8bab9d03e
Moved curl_reset to releasing handles. Added test.
...
- Moved curl_reset to when handles are released back into the pool rather than
when they are reused. This helps to ensure that we aren't holding on to
resources like request and response object graphs longer than necessary.
- Adding missing CurlAdapter tests.
2014-03-09 10:23:50 -07:00
Michael Dowling
0840272151
Adding missing MultiAdapter tests
2014-03-07 18:13:54 -08:00
Michael Dowling
0ebe576e97
Adding a test to ensure absolute URI templates can be used in clients
2014-03-07 14:30:06 -08:00
Michael Dowling
f23925b276
Adding stream adapter test
2014-03-07 14:20:13 -08:00
Michael Dowling
41a2224022
Cleaning up debug output for the stream adapter
2014-03-07 13:56:07 -08:00
Michael Dowling
84b0176d42
Adding another missing stream adapter tests
2014-03-07 13:28:29 -08:00
Michael Dowling
e48af23498
Fixing some StreamAdapter tests
2014-03-07 13:22:07 -08:00
Michael Dowling
9ecc4d7f93
Merge remote-tracking branch 'pborreli/guzzle4-typos' into guzzle4
2014-03-07 13:07:39 -08:00
Michael Dowling
e32d850a99
Cleaning up the EventEmitter
...
- Changed GuzzleHttp\Event\SubscriberInterface::getSubscribedEvents from a
static method to an instance method.
- Renamed addSubscriber to attach.
- Renamed removeSubscriber to detach.
2014-03-07 10:14:17 -08:00
Michael Dowling
05a12083eb
Removing unused use
2014-03-07 09:13:41 -08:00
Michael Dowling
05976ee2b1
Adding some missing cookie jar tests
2014-03-06 10:35:57 -08:00
Michael Dowling
a933648121
Adding a parse exception test
2014-03-06 10:30:42 -08:00
Michael Dowling
1e5bac24a5
Cleaning up MessageFactory and adding tests
2014-03-06 09:54:51 -08:00
Michael Dowling
9a18de3a6c
Adding missing tests
2014-03-06 09:43:25 -08:00
Michael Dowling
565867bcf4
Wrapping all exceptions in the client->send() method and adding tests
2014-03-06 09:39:29 -08:00