1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-16 21:08:13 +01:00

Replaced bad all insecure/invalid/redirecting links

This commit is contained in:
Graham Campbell 2023-09-01 11:33:01 +01:00
parent e79c79ef5b
commit 1cfc24f9fb
No known key found for this signature in database
GPG Key ID: C3CF350727B24FEC
10 changed files with 29 additions and 31 deletions

View File

@ -1,7 +1,7 @@
blank_issues_enabled: false blank_issues_enabled: false
contact_links: contact_links:
- name: 📚Documentation - name: 📚Documentation
url: http://docs.guzzlephp.org url: https://docs.guzzlephp.org/en/stable/
about: Check the documentation before opening an issue. about: Check the documentation before opening an issue.
- name: ❓Support - name: ❓Support

View File

@ -643,7 +643,8 @@ object).
* Note: This has been changed in 5.0.3 to now encode query string values by * Note: This has been changed in 5.0.3 to now encode query string values by
default unless the `rawString` argument is provided when setting the query default unless the `rawString` argument is provided when setting the query
string on a URL: Now allowing many more characters to be present in the string on a URL: Now allowing many more characters to be present in the
query string without being percent encoded. See https://tools.ietf.org/html/rfc3986#appendix-A query string without being percent encoded. See
https://datatracker.ietf.org/doc/html/rfc3986#appendix-A
## 5.0.1 - 2014-10-16 ## 5.0.1 - 2014-10-16
@ -1182,7 +1183,7 @@ interfaces.
## 3.4.0 - 2013-04-11 ## 3.4.0 - 2013-04-11
* Bug fix: URLs are now resolved correctly based on https://tools.ietf.org/html/rfc3986#section-5.2. #289 * Bug fix: URLs are now resolved correctly based on https://datatracker.ietf.org/doc/html/rfc3986#section-5.2. #289
* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289 * Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289
* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263 * Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263
* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264. * Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264.

View File

@ -189,11 +189,11 @@ $client = new GuzzleHttp\Client(['handler' => $handler]);
## POST Requests ## POST Requests
This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html#form_params) This version added the [`form_params`](https://docs.guzzlephp.org/en/latest/request-options.html#form_params)
and `multipart` request options. `form_params` is an associative array of and `multipart` request options. `form_params` is an associative array of
strings or array of strings and is used to serialize an strings or array of strings and is used to serialize an
`application/x-www-form-urlencoded` POST request. The `application/x-www-form-urlencoded` POST request. The
[`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart) [`multipart`](https://docs.guzzlephp.org/en/latest/request-options.html#multipart)
option is now used to send a multipart/form-data POST request. option is now used to send a multipart/form-data POST request.
`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add `GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add
@ -209,7 +209,7 @@ The `base_url` option has been renamed to `base_uri`.
## Rewritten Adapter Layer ## Rewritten Adapter Layer
Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send Guzzle now uses [RingPHP](https://ringphp.readthedocs.org/en/latest) to send
HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor
is still supported, but it has now been renamed to `handler`. Instead of is still supported, but it has now been renamed to `handler`. Instead of
passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP
@ -575,7 +575,7 @@ You can intercept a request and inject a response using the `intercept()` event
of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and
`GuzzleHttp\Event\ErrorEvent` event. `GuzzleHttp\Event\ErrorEvent` event.
See: http://docs.guzzlephp.org/en/latest/events.html See: https://docs.guzzlephp.org/en/latest/events.html
## Inflection ## Inflection
@ -668,9 +668,9 @@ in separate repositories:
The service description layer of Guzzle has moved into two separate packages: The service description layer of Guzzle has moved into two separate packages:
- http://github.com/guzzle/command Provides a high level abstraction over web - https://github.com/guzzle/command Provides a high level abstraction over web
services by representing web service operations using commands. services by representing web service operations using commands.
- http://github.com/guzzle/guzzle-services Provides an implementation of - https://github.com/guzzle/guzzle-services Provides an implementation of
guzzle/command that provides request serialization and response parsing using guzzle/command that provides request serialization and response parsing using
Guzzle service descriptions. Guzzle service descriptions.
@ -870,7 +870,7 @@ HeaderInterface (e.g. toArray(), getAll(), etc.).
3.3 to 3.4 3.3 to 3.4
---------- ----------
Base URLs of a client now follow the rules of https://tools.ietf.org/html/rfc3986#section-5.2.2 when merging URLs. Base URLs of a client now follow the rules of https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.2 when merging URLs.
3.2 to 3.3 3.2 to 3.3
---------- ----------

View File

@ -226,9 +226,9 @@ When creating a request, you can provide the URI as a string or an instance of
Scheme Scheme
------ ------
The `scheme <https://tools.ietf.org/html/rfc3986#section-3.1>`_ of a request The `scheme <https://datatracker.ietf.org/doc/html/rfc3986#section-3.1>`_ of a
specifies the protocol to use when sending the request. When using Guzzle, the request specifies the protocol to use when sending the request. When using
scheme can be set to "http" or "https". Guzzle, the scheme can be set to "http" or "https".
.. code-block:: php .. code-block:: php
@ -275,7 +275,7 @@ The path of a request is accessible via the URI object.
The contents of the path will be automatically filtered to ensure that only The contents of the path will be automatically filtered to ensure that only
allowed characters are present in the path. Any characters that are not allowed allowed characters are present in the path. Any characters that are not allowed
in the path will be percent-encoded according to in the path will be percent-encoded according to
`RFC 3986 section 3.3 <https://tools.ietf.org/html/rfc3986#section-3.3>`_ `RFC 3986 section 3.3 <https://datatracker.ietf.org/doc/html/rfc3986#section-3.3>`_
Query string Query string
@ -292,7 +292,7 @@ URI object owned by the request.
The contents of the query string will be automatically filtered to ensure that The contents of the query string will be automatically filtered to ensure that
only allowed characters are present in the query string. Any characters that only allowed characters are present in the query string. Any characters that
are not allowed in the query string will be percent-encoded according to are not allowed in the query string will be percent-encoded according to
`RFC 3986 section 3.4 <https://tools.ietf.org/html/rfc3986#section-3.4>`_ `RFC 3986 section 3.4 <https://datatracker.ietf.org/doc/html/rfc3986#section-3.4>`_
Responses Responses

View File

@ -37,7 +37,7 @@ The client constructor accepts an associative array of options:
URIs. Can be a string or instance of UriInterface. When a relative URI URIs. Can be a string or instance of UriInterface. When a relative URI
is provided to a client, the client will combine the base URI with the is provided to a client, the client will combine the base URI with the
relative URI using the rules described in relative URI using the rules described in
`RFC 3986, section 5.2 <https://tools.ietf.org/html/rfc3986#section-5.2>`_. `RFC 3986, section 5.2 <https://datatracker.ietf.org/doc/html/rfc3986#section-5.2>`_.
.. code-block:: php .. code-block:: php

View File

@ -243,7 +243,7 @@ class CookieJar implements CookieJarInterface
/** /**
* Computes cookie path following RFC 6265 section 5.1.4 * Computes cookie path following RFC 6265 section 5.1.4
* *
* @see https://tools.ietf.org/html/rfc6265#section-5.1.4 * @see https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4
*/ */
private function getCookiePathFromRequest(RequestInterface $request): string private function getCookiePathFromRequest(RequestInterface $request): string
{ {

View File

@ -420,7 +420,7 @@ class SetCookie
} }
// Remove the leading '.' as per spec in RFC 6265. // Remove the leading '.' as per spec in RFC 6265.
// https://tools.ietf.org/html/rfc6265#section-5.2.3 // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.3
$cookieDomain = \ltrim(\strtolower($cookieDomain), '.'); $cookieDomain = \ltrim(\strtolower($cookieDomain), '.');
$domain = \strtolower($domain); $domain = \strtolower($domain);
@ -431,7 +431,7 @@ class SetCookie
} }
// Matching the subdomain according to RFC 6265. // Matching the subdomain according to RFC 6265.
// https://tools.ietf.org/html/rfc6265#section-5.1.3 // https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.3
if (\filter_var($domain, \FILTER_VALIDATE_IP)) { if (\filter_var($domain, \FILTER_VALIDATE_IP)) {
return false; return false;
} }

View File

@ -256,7 +256,7 @@ class CurlFactory implements CurlFactoryInterface
$method = $easy->request->getMethod(); $method = $easy->request->getMethod();
if ($method === 'PUT' || $method === 'POST') { if ($method === 'PUT' || $method === 'POST') {
// See https://tools.ietf.org/html/rfc7230#section-3.3.2 // See https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2
if (!$easy->request->hasHeader('Content-Length')) { if (!$easy->request->hasHeader('Content-Length')) {
$conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; $conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0';
} }

View File

@ -5,9 +5,7 @@ namespace GuzzleHttp;
/** /**
* This class contains a list of built-in Guzzle request options. * This class contains a list of built-in Guzzle request options.
* *
* More documentation for each option can be found at http://guzzlephp.org/. * @see https://docs.guzzlephp.org/en/latest/request-options.html
*
* @see http://docs.guzzlephp.org/en/v6/request-options.html
*/ */
final class RequestOptions final class RequestOptions
{ {

View File

@ -176,14 +176,13 @@ No system CA bundle could be found in any of the the common system locations.
PHP versions earlier than 5.6 are not properly configured to use the system's PHP versions earlier than 5.6 are not properly configured to use the system's
CA bundle by default. In order to verify peer certificates, you will need to CA bundle by default. In order to verify peer certificates, you will need to
supply the path on disk to a certificate bundle to the 'verify' request supply the path on disk to a certificate bundle to the 'verify' request
option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not option: https://docs.guzzlephp.org/en/latest/request-options.html#verify. If
need a specific certificate bundle, then Mozilla provides a commonly used CA you do not need a specific certificate bundle, then Mozilla provides a commonly
bundle which can be downloaded here (provided by the maintainer of cURL): used CA bundle which can be downloaded here (provided by the maintainer of
https://curl.haxx.se/ca/cacert.pem. Once cURL): https://curl.haxx.se/ca/cacert.pem. Once you have a CA bundle available
you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP on disk, you can set the 'openssl.cafile' PHP ini setting to point to the path
ini setting to point to the path to the file, allowing you to omit the 'verify' to the file, allowing you to omit the 'verify' request option. See
request option. See https://curl.haxx.se/docs/sslcerts.html for more https://curl.haxx.se/docs/sslcerts.html for more information.
information.
EOT EOT
); );
} }