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

56 Commits

Author SHA1 Message Date
notxarb
114516bcb4 Bugfix/curlopt capath (#1684) 2017-05-01 11:38:41 +02:00
Pavel Batanov
703160e28b Add PHP 7.2 testing (#1811)
* Update travis to test against php 7.2

* Add tests for countables

* Update dev phpunit to ^5.0

* Fix tcp proxy URL
2017-05-01 11:12:41 +02:00
Márk Sági-Kazár
437c0c3321 Merge pull request #1611 from arnaud-lb/read-timeout
Add 'read_timeout' option
2017-02-23 21:32:34 +01:00
Arnaud Le Blanc
ed1d1bdecf Add 'read_timeout' option 2016-11-09 17:59:14 +01:00
Bas van Vliet
56ed0ef043 Handle on_headers option in MockHandler (#1580)
* Handle on_headers option

* Tests for correct handling of on_headers option
2016-10-21 23:23:29 +02:00
Michael Butler
984f1d85af handle drain case where content-length is the literal string zero 2016-09-05 17:21:49 -04:00
Michael Dowling
5b3279a810 Do not drain on HEAD requests 2016-07-01 12:25:54 -07:00
Michael Dowling
a6ed049497 Only read up to Content-Length in stream wrapper
This commit updates the stream wrapper to only read up to the number of
bytes returned in the Content-Length header when draining a stream
synchronously.
2016-06-30 13:49:28 -07:00
Andreas Fernandez
8abe196718 Ignore zeroed timeout with StreamHandler to use PHP default instead
Using \GuzzleHttp\Client without cURL being installed falls back to the
StreamHandler. As documented, guzzle uses a `timeout => 0` setting by
default, if that setting isn't explicitly passed as option. This value
is passed to the context of the stream, causing every request to fail
instantly as `timeout => 0` has a different meaning for streams.

Fixes #1487
2016-06-05 11:58:26 +02:00
Michael Dowling
0d082d5714 Fixing broken test. Closes #1470 2016-05-08 12:28:38 -07:00
Jonathan Eskew
b65cdda6b0 Rewind seekable request bodies before dispatching to cURL 2016-03-07 13:12:30 -08:00
Jonathan Eskew
1803e73cf7 Add original content encoding and length to responses 2016-02-23 15:11:24 -08:00
Jonathan Eskew
7377cff8fa Use a LazyOpenStream instead of try_fopen r+ 2016-01-25 10:32:37 -08:00
Michael Dowling
a21d3ccb7e Merge pull request #1292 from ivank/sink-for-mock-handler
Implement "sink" for MockHandler
2015-11-15 01:29:07 -08:00
Dale Attree
1d3cfb248a Set SSL verify peer name to true when verify peer is true.
Added test for to assert verify peer name
2015-11-05 21:39:55 +02:00
Ivan Kerin
ae2536bf72 Implement "sink" for MockHandler 2015-10-30 17:56:48 +02:00
Dale Attree
3937279ba1 Update StreamHandlerTest.php
Incorrect assertion added
2015-10-27 14:45:27 +02:00
Dale Attree
52e099d3ec https://github.com/guzzle/guzzle/issues/1256
Code added to resolve issue 1256
2015-10-21 16:45:15 +02:00
EdgarPE
911bcbc8b4 Fix tests for RequestOptions::SYNCHRONOUS check in Proxy::wrapSync() 2015-09-28 10:59:51 +02:00
Daniel Wehner
e464b0198d Use ::class in tests where it was possible 2015-09-09 11:17:23 +02:00
Michael Dowling
16ccd73eee Adding tests 2015-09-06 12:51:06 -07:00
Michael Dowling
ec1f1a8b56 WIP work on on_stats 2015-09-06 12:11:56 -07:00
Bostjan Oblak
12fe5b4a9e Fix changing curl options 2015-08-18 12:24:44 +02:00
Michael Dowling
d687700d60 Cleaning up no_proxy support 2015-08-15 13:48:15 -07:00
fred
234e813cc9 Add support to sundomains and wilcards 2015-07-30 12:51:16 +02:00
fred
0f7a46213c Allow guzzle to read environment NO_PROXY variable 2015-07-28 20:00:04 +02:00
Jonathan Eskew
f9614178a7 PrepareBodyMiddleware will handle content-length when non-zero; just handle the zero case 2015-07-22 18:26:45 -07:00
Jonathan Eskew
1bf94e4f80 Add content-length header to outgoing requests if not supplied 2015-07-22 17:27:13 -07:00
Michael Dowling
ddb0b857ca Merge remote-tracking branch 'ajgarlag/decoded-content-length' into content-length 2015-07-04 12:08:36 -07:00
hw
690f7af914 Fix failure with HHVM in MockHandlerTest::testCanEnqueueCallables() due to difference in how HHVM handles parameters. 2015-06-25 11:10:28 +05:30
Michael Dowling
a1c986a4bc Adding an easier way to create a mock handler that uses default middlewares 2015-06-03 12:13:27 -07:00
Antonio J. García Lagar
33921a4f1b Fix content-length and content-encoding headers when decoding body content. 2015-06-02 18:20:33 +02:00
Antonio J. García Lagar
41d99927e8 Test content-length and content-encoding with gzipped response
When the upstream response is transfered gzipped, we must test that
the returned response has valid content-length and content-encoding
for the returned body.
2015-05-28 18:04:20 +02:00
Michael Dowling
f924ea6011 Cleanup and adding test 2015-04-30 01:03:35 -07:00
Michael Dowling
15557b1523 Refactoring to support the "on_headers" option 2015-04-30 00:59:01 -07:00
Michael Dowling
a121e36d76 Fixing content-length issue 2015-04-28 10:10:13 -07:00
Michael Dowling
8f3219abd0 Test fix 2015-04-26 22:31:07 -07:00
Michael Dowling
f5df0bcdfa Reusing handles to improve perf (even for curl multi) 2015-04-26 20:05:23 -07:00
Michael Dowling
abd33b9034 Removing maxHandles from CurlMulti. May add queueing in the future 2015-04-26 13:08:10 -07:00
Michael Dowling
a043a2414a Cleaning up curl integration 2015-04-26 12:40:53 -07:00
Michael Dowling
251954e092 Adding handler context to request exceptions 2015-04-25 15:03:28 -07:00
Michael Dowling
64f11b1219 Ensuring the file can be created before giving to curl 2015-04-25 13:25:30 -07:00
Michael Dowling
fd095f0f68 PSR-7 updates 2015-04-19 20:39:53 -07:00
Michael Dowling
1052cb23c8 Using async promise resolution. 2015-04-15 00:05:09 -07:00
Michael Dowling
363b8b44af Test fixes 2015-03-29 18:11:09 -07:00
Michael Dowling
0949947ee2 Updating docs 2015-03-28 15:33:35 -07:00
Michael Dowling
712c917843 Removing extra line 2015-03-28 14:32:54 -07:00
Michael Dowling
5c9cde3921 Throws OutOfBoundsException when no more in queue 2015-03-28 14:32:30 -07:00
Michael Dowling
aab03d40c5 Unrolling switch 2015-03-26 10:34:02 -07:00
Michael Dowling
0a3065ea46 CurlFactory tests 2015-03-26 00:30:14 -07:00