1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-12 03:24:26 +01:00

2220 Commits

Author SHA1 Message Date
Michael Dowling
83ad35d31c Adding automatic github releases 2014-08-19 22:02:13 -07:00
Michael Dowling
fa5e604019 Ensuring the stream adapter does not add a default content-type 2014-08-19 21:34:33 -07:00
Michael Dowling
8e43631d95 Clarifying how the test server works. Closes #775 2014-08-19 20:20:27 -07:00
Michael Dowling
ef4e18545d Using Burgomaster 2014-08-17 22:38:05 -07:00
Michael Dowling
cc79aa7605 Merge branch 'master' of github.com:guzzle/guzzle 4.2.0 2014-08-17 17:48:35 -07:00
Michael Dowling
8e4706e22d 4.2.0 release 2014-08-17 17:47:21 -07:00
Michael Dowling
8d6b9249c9 Adding an easy way to package a zip and phar 2014-08-17 17:46:18 -07:00
Michael Dowling
9351502275 Merge pull request #772 from guzzle/version-4-2
Version 4.2
2014-08-17 17:45:19 -07:00
Michael Dowling
0bc3bc62e1 Clarifying error handling behavior 2014-08-17 16:33:04 -07:00
Michael Dowling
97b72d5d63 Fixing typo 2014-08-17 16:30:54 -07:00
Michael Dowling
f8fa2180c8 Adding more information on parallel adapter error handling 2014-08-17 16:24:44 -07:00
Michael Dowling
e5f0b6b84d Added the ability to throw exceptions immediately.
Closes #760
2014-08-17 16:21:32 -07:00
Michael Dowling
90bd509464 Adding support for the decode_content request option
- MessageFactory and adapters now handle decode_content
- server.js now requires base64 encoded data in the "body" JSON parameter.
- Closes #764
2014-08-17 14:33:46 -07:00
Michael Dowling
d088d32801 Updating to guzzlehttp/streams 2.0 2014-08-16 20:29:57 -07:00
Michael Dowling
7521b6529d No longer using namespace functions from stream package 2014-08-16 18:13:59 -07:00
Michael Dowling
99bf91399c Removing bad docs. Addresses #760 2014-08-16 17:08:23 -07:00
Michael Dowling
ef1b0c3075 Merging in default headers case-insensitively. Closes #767 2014-08-14 23:03:39 -07:00
Michael Dowling
e196b8f44f 4.1.8 release 4.1.8 2014-08-14 13:29:51 -07:00
Michael Dowling
22f7e2decf Using the content-type to control whether multipart/form-data POSTs are made. Closes #768 2014-08-14 13:29:02 -07:00
Michael Dowling
2fe5073f9d Fixing an issue where setting stream=false raised an exception. Closes #769 2014-08-14 13:28:17 -07:00
Michael Dowling
50a80ef0d5 Merge pull request #765 from jeremeamia/master
Updated TransactionIterator::rewind()
2014-08-08 15:10:18 -07:00
Jeremy Lindblom
59dc09db3c Updated TransactionIterator::rewind() to call the rewind() of the inner iterator. 2014-08-08 14:50:15 -07:00
Michael Dowling
448f2c2076 4.1.7 release 4.1.7 2014-08-07 18:30:43 -07:00
Michael Dowling
668d4a7471 Merge pull request #762 from GrahamCampbell/patch-1
Updated the alias format
2014-08-07 15:49:04 -07:00
Graham Campbell
b31901e447 Updated the alias format 2014-08-07 23:48:23 +01:00
Michael Dowling
064b57bbbf Merge pull request #761 from GrahamCampbell/patch-1
Improved composer travis install
2014-08-07 15:26:26 -07:00
Graham Campbell
1665616ee9 Improved composer travis install 2014-08-07 23:20:07 +01:00
Michael Dowling
a09915c831 Only calling curl_multi_select when there are active handles
Calling this function on some versions of PHP can cause the select
to select until the specified timeout value (default of 1 second).
Closes #759.
2014-08-06 13:48:45 -07:00
Michael Dowling
af5107487e Properly encoding multipart/form-data fields that contain special characters. Closes #758 2014-08-06 13:33:33 -07:00
Reinier Kip
fd94f23a64 Test ampersand in multipart field value. 2014-08-06 13:27:00 +02:00
Michael Dowling
799cdf3646 Throwing when you attempt to use "stream" requests in parallel 2014-08-05 13:06:20 -07:00
Michael Dowling
780e9c2036 Updating changelog entry 2014-08-04 13:29:42 -07:00
Michael Dowling
ef7c7c7be4 No longer allowing curl to add a default content-type in the adapter layer 2014-08-04 13:28:32 -07:00
Michael Dowling
f221563b4e Fixing an issue with the history plugin 2014-08-03 16:46:03 -07:00
Michael Dowling
e49ad58038 4.1.6 release 4.1.6 2014-08-03 13:38:45 -07:00
Michael Dowling
b8ca88c797 Making it easier to represent parts of a message as a string 2014-08-03 09:59:59 -07:00
Michael Dowling
75e58ada12 4.1.5 release 4.1.5 2014-08-02 15:52:37 -07:00
Michael Dowling
2b90245038 Merge branch 'no-rewind-fix' 2014-08-02 15:48:29 -07:00
Michael Dowling
fbf2bf6dbd Allowing mulitple event subscriber listeners to be registered per event name 2014-08-02 15:35:17 -07:00
Michael Dowling
5335ee7933 Merge pull request #753 from meckhardt/patch-1
Fixed typo in subscriber example.
2014-08-01 16:14:21 -07:00
Michael Dowling
8b88478852 Curl cleanup
Ensuring that all curl errors are not retried, just the ones where the
connection could not be rewound.
Ensuring that curl handles are always closed, even if they fail to be
removed from the multi for some reason.
Always calling select in the transfer loop.
2014-08-01 14:04:24 -07:00
Michael Dowling
c41c764430 Merge pull request #748 from GrahamCampbell/whitespace
Removed whitespace in a test
2014-08-01 12:20:04 -07:00
Michael Dowling
d68dc43283 Accounting for random connection issues in multi-adapter
This commit updates the MultiAdapter to account for connecitons
being closed unexpectedly and then retried. When this occurs, curl
attempts to rewind the stream before sending. Because we use a
callback function to stream large payloads, curl fails to rewind
the stream and fails the transaction without associating the correct
error code. This commit checks if a transaction has a response
before processing. If a transaction doesn't have a response, then
we attempt to retry the request transparently (without emitting
another set of before events, essentially doing exactly what
curl would have done if it was possible to rewind the stream). If
the request did not have a body, then an error event is emitted as
it is a very weird error. If the request had a body but wasn't
rewindable, then an error event is emitted. If the request had a
body and a rewindable stream, then it is rewound and retried.

This change also updates the MultiAdapter and BatchContext to
transfer until the number of open handles in the BatchContext
reaches 0. This removes some complexity from the main transfer loop
that had to account for pending transactions.

Closes #710
2014-07-31 21:02:29 -07:00
Martin
b0977ddf0c Fixed typo in subscriber example. 2014-07-31 09:17:18 +02:00
Michael Dowling
119e11a750 Cleaning up StreamAdapter and possibly addressing #726 2014-07-30 12:45:04 -07:00
Graham Campbell
1080a9a8b3 Removed whitespace in a test 2014-07-26 12:54:40 +01:00
Michael Dowling
8e90e67c65 Merge pull request #746 from jeromegamez/fix_timeline_example
Replacing github example with httpbin
2014-07-23 12:40:03 -07:00
Jérôme Gamez
8d89a8900d Replacing github example with httpbin
https://github.com/timeline.json has been removed and delivers a JSON message with a 410 HTTP Status code. The change to http://httpbin.org/get follows the other request examples.
2014-07-23 21:10:03 +02:00
Michael Dowling
5ae164dae6 4.1.4 release 4.1.4 2014-07-22 17:52:39 -07:00
Michael Dowling
f74931ee9f Fixing bug in serialzing POST requests 2014-07-22 17:48:20 -07:00