!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/guzzle/src/Message/   drwxrwxr-x
Free 15.58 GB of 61.93 GB (25.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Request.php (4.55 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Message;

use 
GuzzleHttp\Collection;
use 
GuzzleHttp\Event\HasEmitterTrait;
use 
GuzzleHttp\Subscriber\Prepare;
use 
GuzzleHttp\Url;

/**
 * HTTP request class to send requests
 */
class Request extends AbstractMessage implements RequestInterface
{
    use 
HasEmitterTrait;

    
/** @var Url HTTP Url */
    
private $url;

    
/** @var string HTTP method */
    
private $method;

    
/** @var Collection Transfer options */
    
private $transferOptions;

    
/**
     * @param string           $method  HTTP method
     * @param string|Url       $url     HTTP URL to connect to. The URI scheme,
     *   host header, and URI are parsed from the full URL. If query string
     *   parameters are present they will be parsed as well.
     * @param array|Collection $headers HTTP headers
     * @param mixed            $body    Body to send with the request
     * @param array            $options Array of options to use with the request
     *     - emitter: Event emitter to use with the request
     */
    
public function __construct(
        
$method,
        
$url,
        
$headers = [],
        
$body null,
        array 
$options = []
    ) {
        
$this->setUrl($url);
        
$this->method strtoupper($method);
        
$this->handleOptions($options);
        
$this->transferOptions = new Collection($options);
        
$this->addPrepareEvent();

        if (
$body !== null) {
            
$this->setBody($body);
        }

        if (
$headers) {
            foreach (
$headers as $key => $value) {
                
$this->setHeader($key$value);
            }
        }
    }

    public function 
__clone()
    {
        if (
$this->emitter) {
            
$this->emitter = clone $this->emitter;
        }
        
$this->transferOptions = clone $this->transferOptions;
        
$this->url = clone $this->url;
    }

    public function 
setUrl($url)
    {
        
$this->url $url instanceof Url $url Url::fromString($url);
        
$this->updateHostHeaderFromUrl();
    }

    public function 
getUrl()
    {
        return (string) 
$this->url;
    }

    public function 
setQuery($query)
    {
        
$this->url->setQuery($query);
    }

    public function 
getQuery()
    {
        return 
$this->url->getQuery();
    }

    public function 
setMethod($method)
    {
        
$this->method strtoupper($method);
    }

    public function 
getMethod()
    {
        return 
$this->method;
    }

    public function 
getScheme()
    {
        return 
$this->url->getScheme();
    }

    public function 
setScheme($scheme)
    {
        
$this->url->setScheme($scheme);
    }

    public function 
getPort()
    {
        return 
$this->url->getPort();
    }

    public function 
setPort($port)
    {
        
$this->url->setPort($port);
        
$this->updateHostHeaderFromUrl();
    }

    public function 
getHost()
    {
        return 
$this->url->getHost();
    }

    public function 
setHost($host)
    {
        
$this->url->setHost($host);
        
$this->updateHostHeaderFromUrl();
    }

    public function 
getPath()
    {
        return 
'/' ltrim($this->url->getPath(), '/');
    }

    public function 
setPath($path)
    {
        
$this->url->setPath($path);
    }

    public function 
getResource()
    {
        
$resource $this->getPath();
        if (
$query = (string) $this->url->getQuery()) {
            
$resource .= '?' $query;
        }

        return 
$resource;
    }

    public function 
getConfig()
    {
        return 
$this->transferOptions;
    }

    protected function 
handleOptions(array &$options)
    {
        
parent::handleOptions($options);
        
// Use a custom emitter if one is specified, and remove it from
        // options that are exposed through getConfig()
        
if (isset($options['emitter'])) {
            
$this->emitter $options['emitter'];
            unset(
$options['emitter']);
        }
    }

    
/**
     * Adds a subscriber that ensures a request's body is prepared before
     * sending.
     */
    
private function addPrepareEvent()
    {
        static 
$subscriber;
        if (!
$subscriber) {
            
$subscriber = new Prepare();
        }

        
$this->getEmitter()->attach($subscriber);
    }

    private function 
updateHostHeaderFromUrl()
    {
        
$port $this->url->getPort();
        
$scheme $this->url->getScheme();
        if (
$host $this->url->getHost()) {
            if ((
$port == 80 && $scheme == 'http') ||
                (
$port == 443 && $scheme == 'https')
            ) {
                
$this->setHeader('Host'$host);
            } else {
                
$this->setHeader('Host'"{$host}:{$port}");
            }
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2896 ]--