1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-17 13:28:13 +01:00

3570 Commits

Author SHA1 Message Date
Javier Spagnoletti
702cca4cbc
Small simplifications in Utils (#2899) 2021-07-17 17:55:34 +02:00
Timo Schinkel
251bbaa173
[Docs] Add clarification on redirects and PSR-18 (#2893)
* Add clarification on redirects and PSR-18

Using ``GuzzleHttp\Client::sendRequest()`` ignores the `allow_redirects` configuration option. This is discussed in [#2584][0].

This is not reflected in the documentation.

[0]: https://github.com/guzzle/guzzle/issues/2584

* Update docs/request-options.rst

Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
2021-07-17 17:53:53 +02:00
github-actions[bot]
de6f1e58e7
Updating branch alias to 7.4 (#2883)
Co-authored-by: GitHub <noreply@github.com>
2021-03-23 15:07:59 +01:00
Tobias Nyholm
7008573787
Updated date on changelog (#2882) 7.3.0 2021-03-23 12:33:13 +01:00
Tobias Nyholm
b106de8758
Adding CI job to update branch alias when needed (#2880) 2021-03-23 12:29:00 +01:00
Márk Sági-Kazár
98eeb955cb
Merge pull request #2881 from TimWolla/patch-2
Fix markdown typo in CHANGELOG.md
2021-03-21 19:42:29 +01:00
Tim Düsterhus
2c56fff27f
Fix markdown typo in CHANGELOG.md 2021-03-21 19:13:14 +01:00
Tobias Nyholm
955c2e4728
Prepare release 7.3.0 (#2877)
* Prepare release 7.3.0

* Updated changelog

* Update CHANGELOG.md
2021-03-21 18:48:41 +01:00
Tim Düsterhus
a78847bace
Fix formatting of Exception hierarchy in quickstart.rst (#2869)
Introduced in 25486bffcf6fcdb0aceae5a51c31e8f4b2c13c5f.
2021-03-21 18:45:48 +01:00
Tobias Nyholm
7c064ed78b
Test with beta releases (#2879)
* Test with beta releases

* Trigger CI
2021-03-21 18:44:53 +01:00
Graham Campbell
f5aa695156
Robust handling of responses with invalid headers (#2872)
* Robust handling of responses with invalid headers

Co-Authored-By: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>

* Cleanup

Co-authored-by: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
2021-03-21 18:40:38 +01:00
Tobias Nyholm
f769147048
Test with guzzle/PSR7 2.0 (#2874)
* Test with guzzle/PSR7 2.0

* typo

* bugfix

* Allow dev packages

* Adding return type hints

* Test with the bleeding edge of guzzlehttp/psr7

* Test with stable/beta and dev.

* Test with dev-master for 1.x too

* Reorder.

* Dont test on beta
2021-03-21 17:25:10 +01:00
Tobias Nyholm
0103c786af
Allow installing guzzlehttp/psr7:2.0 (#2878) 2021-03-21 15:50:17 +01:00
Graham Campbell
f38085e434
Use robust, consistent Psr7\Utils::tryFopen where possible (#2876)
Co-Authored-By: Mponos George <gmponos@gmail.com>

Co-authored-by: Mponos George <gmponos@gmail.com>
2021-03-21 13:52:42 +01:00
Graham Campbell
6179dd0f61
Update CI, use better integration with psalm, phpstan and php-ci-fixer (also fix one deprecated call) (#2825)
* Replaced call to deprecated function

* Re-worked static analysis

* Removed unnecessary tools entries

* Use --no-progress to hide broken progress bars
2021-03-21 13:09:11 +01:00
Graham Campbell
01129f635f
Bumped branch alias (#2868) 2021-03-15 08:56:29 +01:00
Razvan Grigore
9687c73518
add support for DER and P12 certs (#2411) (#2413)
* add support for DER and P12 certs (#2411)

https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html

* add test for P12/DER cert types

* dont fail test because of cleanup error

Co-authored-by: Razvan Grigore <razvan.grigore@aboutyou.com>
2021-03-10 13:46:33 +01:00
Tobias Nyholm
da94ef2e43
Fixed wrong parameter order in explode() (#2866) 2021-03-07 12:07:08 +00:00
Tim Düsterhus
2793fe24bf
Support the cURL (http://) scheme for StreamHandler proxies (#2850)
* Support the cURL (http://) scheme for StreamHandler proxies

* Remove 'proxy' workarounds in StreamHandlerTest

* Update documentation to use `http://` instead of `tcp://` for proxies

* Add StreamHandlerTest::testUsesProxy()

* Add CurlFactoryTest::testUsesProxy()
2021-03-07 10:21:23 +01:00
Márk Sági-Kazár
55d46a8ba3
Update stale.yml 2021-02-09 08:52:03 +01:00
Steff Missot
3a0543e4f5
[Doc] ConnectException extends TransferException (#2819) 2021-01-30 09:43:14 +01:00
Joachim
34bc199aef
Removed outdated version number. (#2820) 2020-11-15 12:44:59 +01:00
homersimpsons
18b5ccb551
Middleware httpErrors: fix option name typo (#2817) 2020-11-10 11:00:48 +01:00
Gerd R
25486bffcf
Correct tree of exceptions (#2813)
The ConnectException extends the TransferException not the RequestException
2020-10-25 23:25:00 +01:00
Bryan
c71ec26fd2
Update docs to reflect correct exception when using timeout option (#2812) 2020-10-20 21:07:23 +02:00
Graham Campbell
1165f319d9
Test on Windows PHP 8.0 (#2793) 2020-10-19 14:38:56 +02:00
Graham Campbell
0aa74dfb41
Release 7.2.0 (#2808)
* Release 7.2.0

* Update CHANGELOG.md

Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>

Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
7.2.0
2020-10-10 13:47:56 +02:00
YoakeSakura
368bf4db70
Fix CURLOPT_ENCODING not to be overwritten (#2595)
* Fix CURLOPT_ENCODING not to be overwritten

* Added Header test
2020-10-09 22:04:19 +02:00
Graham Campbell
957b0a0941
Support setting truncateBodyAt param in the http errors middleware (#2795)
* Support setting truncate_body_at option for use by the http errors middleware

* Tweaked variable name

* Remove handler stack options

* Refactor to use an interface instead of a callable

* Removed unused imports

* Update Middleware.php

* Update MiddlewareTest.php
2020-10-09 22:03:10 +02:00
Tobias Nyholm
c8c99e3fe4
Adding some highly opinionated CS fixes (#2797) 2020-10-09 15:47:46 +02:00
Graham Campbell
8d850e620d
Upgrade to phpstan 0.12.48 (#2794) 2020-10-09 15:44:30 +02:00
Tobias Nyholm
17428d7501
Merge pull request #2804 from Nyholm/head-request-fix
Make sure the Request always has a body object
2020-10-09 15:37:55 +02:00
Nyholm
d48af55e18
Make sure the request always has a body object.
Even HEAD requests.
2020-10-09 15:30:24 +02:00
Tim Düsterhus
3d87fb8404
Fix handling of HEAD requests with Accept-Encoding header
Fixes guzzle/guzzle#2799
Resolves guzzle/guzzle#2800
2020-10-09 14:50:10 +02:00
Sam Reed
c3927bc669
Add psalm xml files to export-ignore (#2802) 2020-10-07 10:13:01 +02:00
Tobias Nyholm
d5a2b0338e
Added changelog for 7.2 (#2792) 2020-10-06 20:45:11 +02:00
Tobias Nyholm
b22ead0a39
Test on PHP8 (#2789) 2020-10-01 13:31:51 +02:00
Ayesh Karunaratne
33e12c0ab6
Update Curl is_resource() to work with PHP 8 CurlHandle and CurlMultiHandle objects (#2715)
* Update Curl is_resource() to work with PHP 8 Curl(Multi)Handle objects

Updates `is_resource()` calls for curl handlers to properly work with PHP 8's `\CurlHandle` and `\CurlMultiHandle` objects.
See https://php.watch/versions/8.0/resource-CurlHandle

PHPDoc comments are updated to indicate that the variable/property can be either a resource or a Curl object.

* Updated baselines

Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
2020-10-01 13:21:51 +02:00
Tobias Nyholm
fa121c2e4d
[Windows][CI] Fixed workaround with http_test_server (#2790)
* Test on windows

* Update .github/workflows/ci.yml

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>

* Use 3.0

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2020-10-01 13:08:42 +02:00
William Julian-Vicary
616288af85
Handle exceptions during response creation (#2591)
* Handle exceptions during response creation

Catches exceptions thrown during the createResponse method of the easy handler to avoid crashes during the headers method.

* Add test with helper method on server.php to allow enqueing a raw response

* Fixing static analysis

* Fixing PHP-CS-Fixer issues

* Update Server.php

* Fixing PHP-CS-Fixer issues

* Updating Exception to match Guzzle Exception thrown

* Remove deprecated call to rejection_for()
2020-09-30 17:03:52 +02:00
David Grayston
48fa032336
Pass response to TooManyRedirectsException (#2660)
* Pass response to TooManyRedirectsException

* Add test for TooManyRedirectsException response
2020-09-30 16:30:49 +02:00
Tobias Nyholm
977b0deb89
Deprecate GUZZLE_CURL_SELECT_TIMEOUT (#2786) 2020-09-30 14:35:04 +02:00
Graham Campbell
702a359bcb
Removed unnecessary leading import slashes (#2788) 2020-09-30 12:02:39 +02:00
Graham Campbell
3d17892590
Avoid "functions" from dependencies (#2712)
* Avoid "functions" from dependencies

* Added change log entry
2020-09-30 11:50:52 +02:00
Tobias Nyholm
7427d6f99d
Prepare 7.1.1 (#2785)
* Prepare 7.1.1

* update dete
7.1.1
2020-09-30 10:51:17 +02:00
Tobias Nyholm
4618ba9a74
6.x will only get security fixes (#2787) 2020-09-30 10:38:39 +02:00
Tim Düsterhus
fe7556b952
Fix response body streams in Windows (#2741)
* Fix response body streams in Windows

Fixes #2735

* Add CurlFactoryTest::testBodyEofOnWindows()
2020-09-30 09:18:48 +02:00
Tim Düsterhus
4552f37ba6
Do not connect a sink for HEAD requests (#2778) 2020-09-29 17:46:32 +02:00
Tobias Nyholm
2890bde08e
Add some labels as “keep open” 2020-09-25 19:02:12 +02:00
Tobias Nyholm
1657c580e3
Added Stale application (#2779)
* Added Stale application

* Update stale.yml
2020-09-25 16:28:35 +02:00