MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/guajeru/transparencia/assets/ckfinder/core/connector/php/vendor/guzzlehttp/guzzle/docs/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
_static dir drwxr-xr-x 2021-07-19 12:55 R D
Makefile 5.583 KB -rw-r--r-- 2021-07-19 12:47 R E G D
conf.py 2.027 KB -rw-r--r-- 2021-07-19 12:47 R E G D
faq.rst 6.42 KB -rw-r--r-- 2021-07-19 12:47 R E G D
handlers-and-middleware.rst 9.846 KB -rw-r--r-- 2021-07-19 12:47 R E G D
index.rst 1.612 KB -rw-r--r-- 2021-07-19 12:47 R E G D
overview.rst 4.922 KB -rw-r--r-- 2021-07-19 12:47 R E G D
psr7.rst 13.198 KB -rw-r--r-- 2021-07-19 12:47 R E G D
quickstart.rst 19.9 KB -rw-r--r-- 2021-07-19 12:47 R E G D
request-options.rst 31.965 KB -rw-r--r-- 2021-07-19 12:47 R E G D
requirements.txt 0.056 KB -rw-r--r-- 2021-07-19 12:47 R E G D
testing.rst 5.993 KB -rw-r--r-- 2021-07-19 12:47 R E G D
REQUEST EXIT
=============== Request Options =============== You can customize requests created and transferred by a client using **request options**. Request options control various aspects of a request including, headers, query string parameters, timeout settings, the body of a request, and much more. All of the following examples use the following client: .. code-block:: php $client = new GuzzleHttp\Client(['base_uri' => 'http://httpbin.org']); .. _allow_redirects-option: allow_redirects --------------- :Summary: Describes the redirect behavior of a request :Types: - bool - array :Default: :: [ 'max' => 5, 'strict' => false, 'referer' => false, 'protocols' => ['http', 'https'], 'track_redirects' => false ] :Constant: ``GuzzleHttp\RequestOptions::ALLOW_REDIRECTS`` Set to ``false`` to disable redirects. .. code-block:: php $res = $client->request('GET', '/redirect/3', ['allow_redirects' => false]); echo $res->getStatusCode(); // 302 Set to ``true`` (the default setting) to enable normal redirects with a maximum number of 5 redirects. .. code-block:: php $res = $client->request('GET', '/redirect/3'); echo $res->getStatusCode(); // 200 You can also pass an associative array containing the following key value pairs: - max: (int, default=5) maximum number of allowed redirects. - strict: (bool, default=false) Set to true to use strict redirects. Strict RFC compliant redirects mean that POST redirect requests are sent as POST requests vs. doing what most browsers do which is redirect POST requests with GET requests. - referer: (bool, default=false) Set to true to enable adding the Referer header when redirecting. - protocols: (array, default=['http', 'https']) Specified which protocols are allowed for redirect requests. - on_redirect: (callable) PHP callable that is invoked when a redirect is encountered. The callable is invoked with the original request and the redirect response that was received. Any return value from the on_redirect function is ignored. - track_redirects: (bool) When set to ``true``, each redirected URI and status code encountered will be tracked in the ``X-Guzzle-Redirect-History`` and ``X-Guzzle-Redirect-Status-History`` headers respectively. All URIs and status codes will be stored in the order which the redirects were encountered. Note: When tracking redirects the ``X-Guzzle-Redirect-History`` header will exclude the initial request's URI and the ``X-Guzzle-Redirect-Status-History`` header will exclude the final status code. .. code-block:: php use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\UriInterface; $onRedirect = function( RequestInterface $request, ResponseInterface $response, UriInterface $uri ) { echo 'Redirecting! ' . $request->getUri() . ' to ' . $uri . "\n"; }; $res = $client->request('GET', '/redirect/3', [ 'allow_redirects' => [ 'max' => 10, // allow at most 10 redirects. 'strict' => true, // use "strict" RFC compliant redirects. 'referer' => true, // add a Referer header 'protocols' => ['https'], // only allow https URLs 'on_redirect' => $onRedirect, 'track_redirects' => true ] ]); echo $res->getStatusCode(); // 200 echo $res->getHeaderLine('X-Guzzle-Redirect-History'); // http://first-redirect, http://second-redirect, etc... echo $res->getHeaderLine('X-Guzzle-Redirect-Status-History'); // 301, 302, etc... .. warning:: This option only has an effect if your handler has the ``GuzzleHttp\Middleware::redirect`` middleware. This middleware is added by default when a client is created with no handler, and is added by default when creating a handler with ``GuzzleHttp\HandlerStack::create``. auth ---- :Summary: Pass an array of HTTP authentication parameters to use with the request. The array must contain the username in index [0], the password in index [1], and you can optionally provide a built-in authentication type in index [2]. Pass ``null`` to disable authentication for a request. :Types: - array - string - null :Default: None :Constant: ``GuzzleHttp\RequestOptions::AUTH`` The built-in authentication types are as follows: basic Use `basic HTTP authentication `_ in the ``Authorization`` header (the default setting used if none is specified). .. code-block:: php $client->request('GET', '/get', ['auth' => ['username', 'password']]); digest Use `digest authentication `_ (must be supported by the HTTP handler). .. code-block:: php $client->request('GET', '/get', [ 'auth' => ['username', 'password', 'digest'] ]); .. note:: This is currently only supported when using the cURL handler, but creating a replacement that can be used with any HTTP handler is planned. ntlm Use `Microsoft NTLM authentication `_ (must