1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-03-15 19:59:52 +01:00

3633 Commits

Author SHA1 Message Date
Graham Campbell
ea2e08481f
Apply on request the version set in options parameters (#3135)
Co-authored-by: Mponos George <5675248+gmponos@users.noreply.github.com>
2023-05-14 12:15:49 +02:00
Graham Campbell
3d12c4ba38
Merge branch '7.5' into 7.6 2023-05-14 11:21:09 +02:00
Graham Campbell
4019c94f08
Release 7.5.2 (#3134) 7.5.2 2023-05-14 11:20:02 +02:00
Illia Antypenko
39ad11f6c7
Corrected docs and default connect timeout value to 300 seconds (#3075)
Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
2023-05-14 11:17:19 +02:00
Graham Campbell
15c3f6943f
Fix set cookie constructor validation (#3133) 2023-05-14 11:10:32 +02:00
Graham Campbell
a8154fcb94
Add support for setting crypto method in a unified way (#3132) 2023-05-13 17:28:03 +02:00
Graham Campbell
ebd2b6bc45
Fix 0 body handling (#3131) 2023-05-13 16:52:30 +02:00
Graham Campbell
255d7157b4
Enable error_reporting=E_ALL on CI (#3123) 2023-04-18 09:37:42 +01:00
Graham Campbell
d456dff124
Cleanup CI (#3122) 2023-04-18 09:25:48 +01:00
Graham Campbell
b964ca597e
Release 7.5.1 (#3121) 7.5.1 2023-04-17 17:30:08 +01:00
Alex
5b71b8f54f
GitHub Workflows security hardening (#3081) 2023-04-17 17:24:07 +01:00
Gergely Sényi
c6f3a35d50
Fix NO_PROXY settings (#3117) 2023-04-17 17:21:54 +01:00
Graham Campbell
242f1283b0
Dropped broken BC check (#3120) 2023-04-17 17:21:17 +01:00
Graham Campbell
5f3a3db101
Tweak CI matrix (#3119) 2023-04-17 17:20:58 +01:00
Graham Campbell
385f6547c7
Adjust guzzlehttp/psr7 version constraint to ^1.9.1 || ^2.4.5 (#3118) 2023-04-17 17:15:31 +01:00
Shawn Corrigan
e0a28b6a14
Update Testing documentation for test-server package (#3113) 2023-04-17 17:15:03 +01:00
Graham Campbell
8459341c16
Adjust supported PHP versions in README (#3069) 2022-08-29 12:03:19 +01:00
Graham Campbell
b50a2a1251
Release 7.5.0 (#3065) 7.5.0 2022-08-28 16:39:27 +01:00
Graham Campbell
546ac3f054
Upgrade SA tools (#3067) 2022-08-28 16:28:05 +01:00
Mohamed Nagy
be2902f14e
Add request to delay closure params (#3057)
Co-authored-by: Mohamed Nagy <mohamed.nagy@aboutyou.com>
2022-08-28 16:08:59 +01:00
github-actions[bot]
0114fa0041
Update branch alias (#2948)
Co-authored-by: GitHub <noreply@github.com>
2022-08-28 16:08:43 +01:00
Hynek Schlawack
27389fa092
docs: Pin Jinja2 & markupsafe (#3063) 2022-08-28 16:00:02 +01:00
Graham Campbell
4e28ee5d7e
Test on PHP 8.2 (#3056) 2022-07-31 10:40:09 +01:00
Graham Campbell
514f665f52
Fix for janky shared hosting disabling curl (#3055) 2022-07-31 10:13:13 +01:00
Christian Weiske
84779a5cc7
Link from documentation to upgrade guide (#3002)
.. because I expected to find the guide in the documentation.
2022-07-31 10:12:55 +01:00
Akshay Agarwal
ca5c743d20
Link to the correct RFC for 'Basic' authentication (#3044) 2022-06-22 23:41:11 +01:00
Graham Campbell
1dd98b0564
Release 7.4.5 (#3043) 7.4.5 2022-06-20 23:16:13 +01:00
Tim Düsterhus
8d2ce4ed2e
Stop pretending that PHP 8.1 is 8.0 in CI (#3024) 2022-06-15 13:11:03 +01:00
Graham Campbell
e3ff079b22
Release 7.4.4 (#3023) 7.4.4 2022-06-09 22:39:15 +01:00
Graham Campbell
74a8602c6f
[7.x] Fix cross-domain cookie leakage (#3018)
Co-authored-by: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
7.4.3
2022-05-25 14:24:33 +01:00
Greg Pinnington
b720a2d0ff
Update docs from default_handler to HandlerStack::create (#3000)
Co-authored-by: RoBorg <roborg@gmail.com>
2022-05-16 17:07:31 +02:00
Tobias Nyholm
82ca75f0b1
Update links in readme (#2997) 2022-03-20 14:21:21 +00:00
Tobias Nyholm
ac1ec1cd9b
Release 7.4.2 (#2996) 7.4.2 2022-03-20 14:16:28 +00:00
Tim Düsterhus
8e4a4cd2da
Set a default ssl.peer_name context in StreamHandler (#2988)
* Set a default ssl.peer_name context in StreamHandler

This is required when using the `force_ip_resolve` option with the stream
handler:

As that option will cause the StreamHandler to manually resolve the hostname
and then replace the hostname with the resolved IP address in the URI, PHP
will use that IP address by default in the SNI of the TLS handshake.

Set an explicit ssl.peer_name within the stream's context based on the hostname
in the URL to fix this.

Setting a proper SNI is independent from TLS certificate validation, thus this
value must not be dependent on the `verify` option.

A test cannot be added, due to a lack of TLS support with the current testing
infrastructure. TLS support cannot easily be added, because it would require a
separate port and also certificates that would need to be commited to the
repository. However correctness can be verified by setting `force_ip_resolve`
to `v4` and attempting to make a request to `https://www.example.com/`. It will
fail without this commit and work with.

* Add tests/Handler/Network/StreamHandlerTest.php
2022-03-20 15:03:07 +01:00
Tim Düsterhus
be834dba54
Reject non-HTTP schemes in StreamHandler (#2989)
* Handle non-HTTP schemes gracefully in StreamHandler

If an URI that does not use the HTTP stream wrapper is passed to the
StreamHandler then the magic `$http_response_header` variable will not be
filled, thus remaining `null`.

This ultimately results in a `TypeError`, because `null` is passed to
HeaderProcessor::parseHeaders(), which expects an `array`.

* Reject non-HTTP schemes in StreamHandler

Non-HTTP schemes are effectively not supported, because the HTTP response
headers will only be filled for the `http` and `https` stream wrappers. Also
Guzzle is an HTTP client after all.

Reject non-HTTP schemes early on to improve error messages and to prevent
possible exploits using odd stream wrappers in case an non-fully-trusted URL is
passed to Guzzle.
2022-03-13 17:20:27 +01:00
Konstantin Kopachev
cc80b002a0
Remove curl auth on cross-domain redirects (#2845) 2022-03-13 16:15:42 +00:00
Fabien Villepinte
802ecc6e56
Fix comparison in testParseCookie (#2977) 2022-03-13 16:54:35 +01:00
Tim Düsterhus
d12ecb13c7
Configure convertDeprecationsToExceptions="true" in phpunit.xml.dist (#2992) 2022-03-13 15:53:15 +00:00
Ruud Kamphuis
74ca2cb463
Pass int to &$still_running of curl_multi_exec (#2991) 2022-03-07 11:54:33 +00:00
Fabien Villepinte
c1fd316f0a
Set allow-plugins for Composer 2.2 (#2969)
This new configuration has been introduced with Composer 2.2: https://github.com/composer/composer/releases/tag/2.2.0-RC1
2021-12-13 16:13:08 +00:00
Graham Campbell
ee0a041b17
Release 7.4.1 (#2965) 7.4.1 2021-12-06 18:43:05 +00:00
Graham Campbell
01611d9e72
Replaced implicit URI to string coercion (#2946) 2021-12-06 19:34:32 +01:00
divinity76
e6765c0559
Only close curl handle if it's done (#2950) 2021-12-06 18:24:04 +00:00
Alexander M. Turek
1d347d76a8
Allow deprecation-contracts 3 (#2961)
* Allow deprecation-contracts 3

* Update composer.json

Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
2021-12-06 18:22:58 +00:00
Sam Reed
764e13d11d
Add vendor-bin as export-ignore in .gitattributes (#2956) 2021-12-06 18:22:49 +00:00
Graham Campbell
868b3571a0
Release 7.4.0 (#2947) 7.4.0 2021-10-18 10:52:00 +01:00
Graham Campbell
70d32b9f38
Stricter treatment of types in SetCookie (#2945)
* Stricter treatment of types in `SetCookie`

* Upgraded static analyzers
2021-10-18 10:23:28 +02:00
Tim Düsterhus
399c0eaf9b
Throw InvalidArgumentException when an incorrect headers array is provided (#2942)
* Throw `InvalidArgumentException` when an incorrect `headers` array is provided

As discussed in PR #2916 after it was merged an `InvalidArgumentException` is
more fitting, as passing an invalid `headers` array is a clear programming
error that needs to be fixed and not caught.

This is consistent with the validation of the other options, e.g. when using
`multipart` and `form_params` at the same time.

see #2916
see a2b8dd1ad7e733d50e9c7b80cb375e0883a7088d

* Remove obsolete import in Client.php / ClientTest.php
2021-10-17 14:39:51 +01:00
erikn69
eeac96d112
Support psr/log:^2.0,^3.0 (#2943) 2021-10-14 00:47:22 +01:00
Graham Campbell
7ec2e2a665
Bump minimum versions for PHP 8.1 support (#2939) 2021-10-07 22:43:45 +02:00