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

2350 Commits

Author SHA1 Message Date
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
Michael Dowling
1452c3c7d7 Merge pull request #740 from jamiehannaford/patch-1
Update clients.rst
2014-07-22 17:34:12 -07:00
Michael Dowling
fe72479671 Merge pull request #742 from dkvk/master
Added missing default argument
2014-07-22 14:09:51 -07:00
Daniel Kolvik
021a076aed Added missing default argument
The arguments to the SimpleXMLElement is documented in this way over at PHP.net:
```
data – A well-formed XML string or the path or URL to an XML document if data_is_url is TRUE.
options – Optionally used to specify additional Libxml parameters.
data_is_url – By default, data_is_url is FALSE. Use TRUE to specify that data is a path or URL to an XML document instead of string data.
ns – Namespace prefix or URI.
is_prefix – TRUE if ns is a prefix, FALSE if it's a URI; defaults to FALSE.
```

Even though we never will load XML in directly from a URL in this use case, the thrid argument data_is_url has to explicit be set to false. Otherwise the construct of SimpleXMLElement wont work as expected when the ns and is_prefix is beeing used.
2014-07-22 23:05:12 +02:00
Michael Dowling
e23b264c35 Merge pull request #738 from jamesfurey/master
Added 'options' to Response->xml() $config parameter.
2014-07-22 13:57:11 -07:00
Jamie Hannaford
4364fccf2a Update clients.rst 2014-07-22 12:30:00 +02:00
James Furey
6da39220f3 Renamed 'options' as 'libxml_options'. Updated ResponseInterface->xml() docblock. 2014-07-21 16:40:16 +10:00
Michael Dowling
5ab8c29546 Does not create a save_to stream until it is used. Closes #715 2014-07-19 12:17:17 -07:00
Michael Dowling
c6e07a3e96 Simplifying MultipartBody 2014-07-19 11:50:09 -07:00
James Furey
27de870d6c Added 'options' to Response->xml() $config parameter. 2014-07-19 13:24:09 +10:00
Michael Dowling
9a0a38096c Merge pull request #736 from jamiehannaford/url-combine-0-fix
Ensuring that '0' paths can be combined into empty URLs
2014-07-18 10:22:02 -07:00
Jamie Hannaford
0bfd7230a0 Ensuring that '0' paths can be combined into empty URLs 2014-07-16 13:30:30 +02:00
Michael Dowling
012b2aecbd Prepping for release 4.1.3 2014-07-15 20:01:02 -07:00
Michael Dowling
2c7cc07ba8 Merge remote-tracking branch 'pdt256/master'
Conflicts:
	src/Post/PostBody.php
2014-07-15 18:36:35 -07:00
Jamie Isaacs
4166ecbe79 Allowing PostBody to support multipart/form-data with base64 encoded strings 2014-07-15 17:20:00 -07:00
Michael Dowling
14f0873442 Lots of fixes to multipart/form-data
Using the AppendStream to vastly clean up how a multipart POST is created.
This changes also cleans up how the body is sent over the wire, eliminating
some bugs I discovered when fields are sent before files.
2014-07-15 15:50:36 -07:00
Michael Dowling
b909bd8bef Wrapping functions.php in an if-statement
This change wraps the functions defined in functions.php in an if
statement that checks to see if GUZZLE_FUNCTION_VERSION is defined. If
it is not defined, it is defined and set to the Guzzle version number.
This allows you to use a "global" version of Guzzle alongside a local version,
and still know which functions.php was autoloaded.

Closes #676
2014-07-14 16:55:50 -07:00
Michael Dowling
11810f6895 Fixing an issue with generating event arrays and adding missing tests 2014-07-14 16:34:23 -07:00
Michael Dowling
be4c132422 Merge pull request #732 from guzzle/post_urlencode
Adding more robust query string parsing.
2014-07-14 10:00:54 -07:00
Michael Dowling
0627c9ce03 Updating based on code review feedback 2014-07-11 23:10:15 -07:00
Michael Dowling
20c10129c3 Fix to ensure that repeated values are parsed correctly 2014-07-11 17:54:10 -07:00