????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.222.153.166 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/icad.astacus.se/sharepoint/vendor/vgrem/php-spo/src/Runtime/Http/ |
Upload File : |
<?php namespace Office365\Runtime\Http; use Office365\Runtime\Auth\UserCredentials; class RequestOptions { /** * RequestOptions constructor. * @param $url string * @param array $headers * @param string $data * @param string $methodType */ public function __construct($url, $headers = array(), $data = null, $methodType = HttpMethod::Get) { $this->Url = $url; $this->Method = $methodType; $this->Headers = $headers; $this->IncludeBody = true; $this->IncludeHeaders = false; $this->AuthType = null; $this->UserCredentials = null; $this->Verbose = false; $this->SSLVersion = null; $this->StreamHandle = null; $this->Data = $data; $this->ConnectTimeout = null; $this->TransferEncodingChunkedAllowed = false; $this->FollowLocation = false; } /** * @return array */ public function toArray() { return get_object_vars($this); } /** * @param string $name * @param string $value */ public function ensureHeader($name, $value) { if (is_null($this->Headers)) { $this->Headers = array(); } if (!array_key_exists($name, $this->Headers)) { $this->Headers[$name] = $value; } } /** * @return string[] */ public function getRawHeaders() { return array_map( function ($k, $v) { return "$k:$v"; }, array_keys($this->Headers), array_values($this->Headers) ); } /** * @var string */ public $Url; /** * @var string */ public $Method; /** * Gets/sets custom HTTP headers * @var array */ public $Headers; /** * @var string */ public $Data; /** * Gets/sets whether to return response headers only * @var bool */ public $IncludeHeaders; /** * Do the request without getting the response * @var bool */ public $IncludeBody; /** * @var int */ public $AuthType; /** * @var UserCredentials */ public $UserCredentials; /** * @var bool */ public $Verbose; /** * Control which version range of SSL/TLS versions to use * @var int */ public $SSLVersion; /** * @var resource */ public $StreamHandle; /** * @var string */ public $Proxy; /** * It should contain the maximum time in seconds that you allow the connection phase to the server to take * @var ?int */ public $ConnectTimeout; /** * @var bool */ public $TransferEncodingChunkedAllowed; /** * tells the library to follow any Location: header that the server sends as part of an HTTP header * in a 3xx response. The Location: header can specify a relative or an absolute URL to follow. * @var bool */ public $FollowLocation; }