Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * cURL HTTP transport * * @package Requests\Transport */ namespace WpOrg\Req..
Decoded Output download
<?php /**
* cURL HTTP transport
*
* @package Requests\Transport
*/ namespace WpOrg\Requests\Transport;use RecursiveArrayIterator;use RecursiveIteratorIterator;use WpOrg\Requests\Capability;use WpOrg\Requests\Exception;use WpOrg\Requests\Exception\InvalidArgument;use WpOrg\Requests\Exception\Transport\Curl as CurlException;use WpOrg\Requests\Requests;use WpOrg\Requests\Transport;use WpOrg\Requests\Utility\InputValidator;/**
* cURL HTTP transport
*
* @package Requests\Transport
*/ final class agszc implements ozkfd{const CURL_7_10_5=0x070A05;const CURL_7_16_2=0x071002;/**
* Raw HTTP data
*
* @var string
*/ public $rklpe='';/**
* Raw body data
*
* @var string
*/ public $hxddf='';/**
* Information on the current request
*
* @var array cURL information array, see {@link https://www.php.net/curl_getinfo}
*/ public $gevs10;/**
* cURL version number
*
* @var int
*/ public $mpdf11;/**
* cURL handle
*
* @var resource|\CurlHandle Resource in PHP < 8.0, Instance of CurlHandle in PHP >= 8.0.
*/ private $uqkx12;/**
* Hook dispatcher instance
*
* @var \WpOrg\Requests\Hooks
*/ private $khvi13;/**
* Have we finished the headers yet?
*
* @var boolean
*/ private $eyfy14=false;/**
* If streaming to a file, keep the file pointer
*
* @var resource
*/ private $msyi15;/**
* How many bytes are in the response body?
*
* @var int
*/ private $gkik16;/**
* What's the maximum number of bytes we should keep?
*
* @var int|bool Byte count, or false if no limit.
*/ private $wflo17;/**
* Constructor
*/ public function muuo0(){$xaol18=curl_version();$this->$yblp19=$xaol18[base64_decode('dmVyc2lvbl9udW1iZXI=')];$this->$yrxs1a=curl_init();curl_setopt($this->$yrxs1a,CURLOPT_HEADER,false);curl_setopt($this->$yrxs1a,CURLOPT_RETURNTRANSFER,1);if($this->$yblp19>=self::CURL_7_10_5){curl_setopt($this->$yrxs1a,CURLOPT_ENCODING,'');}if(defined(base64_decode('Q1VSTE9QVF9QUk9UT0NPTFM='))){curl_setopt($this->$yrxs1a,CURLOPT_PROTOCOLS,CURLPROTO_HTTP|CURLPROTO_HTTPS);}if(defined(base64_decode('Q1VSTE9QVF9SRURJUl9QUk9UT0NPTFM='))){curl_setopt($this->$yrxs1a,CURLOPT_REDIR_PROTOCOLS,CURLPROTO_HTTP|CURLPROTO_HTTPS);}}/**
* Destructor
*/ public function axig1(){if(is_resource($this->$yrxs1a)){curl_close($this->$yrxs1a);}}/**
* Perform a request
*
* @param string|Stringable $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
* @return string Raw HTTP result
*
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $url argument is not a string or Stringable.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $headers argument is not an array.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $data parameter is not an array or string.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $options argument is not an array.
* @throws \WpOrg\Requests\Exception On a cURL error (`curlerror`)
*/ public function wegb2($umph1b,$rklpe=[],$lugw1c=[],$nipv1d=[]){if(InputValidator::gxbv1e($umph1b)===false){throw InvalidArgument::pdbn1f(1,base64_decode('JHVybA=='),base64_decode('c3RyaW5nfFN0cmluZ2FibGU='),gettype($umph1b));}if(is_array($rklpe)===false){throw InvalidArgument::pdbn1f(2,base64_decode('JGhlYWRlcnM='),base64_decode('YXJyYXk='),gettype($rklpe));}if(!is_array($lugw1c)&&!is_string($lugw1c)){if($lugw1c===null){$lugw1c='';}else{throw InvalidArgument::pdbn1f(3,base64_decode('JGRhdGE='),base64_decode('YXJyYXl8c3RyaW5n'),gettype($lugw1c));}}if(is_array($nipv1d)===false){throw InvalidArgument::pdbn1f(4,base64_decode('JG9wdGlvbnM='),base64_decode('YXJyYXk='),gettype($nipv1d));}$this->$vnll20=$nipv1d[base64_decode('aG9va3M=')];$this->zdop5($umph1b,$rklpe,$lugw1c,$nipv1d);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfc2VuZA=='),[&$this->$yrxs1a]);if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false){$this->$konf22=@fopen($nipv1d[base64_decode('ZmlsZW5hbWU=')],base64_decode('d2I='));if($this->$konf22===false){$iksp23=error_get_last();throw new lsvy24($iksp23[base64_decode('bWVzc2FnZQ==')],base64_decode('Zm9wZW4='));}}$this->$sitf25='';$this->$edvg26=0;$this->$eksj27=false;if($nipv1d[base64_decode('bWF4X2J5dGVz')]!==false){$this->$eksj27=$nipv1d[base64_decode('bWF4X2J5dGVz')];}if(isset($nipv1d[base64_decode('dmVyaWZ5')])){if($nipv1d[base64_decode('dmVyaWZ5')]===false){curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYPEER,0);}elseif(is_string($nipv1d[base64_decode('dmVyaWZ5')])){curl_setopt($this->$yrxs1a,CURLOPT_CAINFO,$nipv1d[base64_decode('dmVyaWZ5')]);}}if(isset($nipv1d[base64_decode('dmVyaWZ5bmFtZQ==')])&&$nipv1d[base64_decode('dmVyaWZ5bmFtZQ==')]===false){curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYHOST,0);}curl_exec($this->$yrxs1a);$dkyv28=$this->$sitf25;$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9zZW5k'),[]);if(curl_errno($this->$yrxs1a)===CURLE_WRITE_ERROR||curl_errno($this->$yrxs1a)===CURLE_BAD_CONTENT_ENCODING){curl_setopt($this->$yrxs1a,CURLOPT_ENCODING,base64_decode('bm9uZQ=='));$this->$sitf25='';$this->$edvg26=0;curl_exec($this->$yrxs1a);$dkyv28=$this->$sitf25;}$this->lkvh6($dkyv28,$nipv1d);curl_setopt($this->$yrxs1a,CURLOPT_HEADERFUNCTION,null);curl_setopt($this->$yrxs1a,CURLOPT_WRITEFUNCTION,null);return $this->$prco29;}/**
* Send multiple requests simultaneously
*
* @param array $requests Request data
* @param array $options Global options
* @return array Array of \WpOrg\Requests\Response objects (may contain \WpOrg\Requests\Exception or string responses as well)
*
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $requests argument is not an array or iterable object with array access.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $options argument is not an array.
*/ public function lidf3($kjze2a,$nipv1d){if(empty($kjze2a)){return[];}if(InputValidator::nhgj2b($kjze2a)===false||InputValidator::is_iterable($kjze2a)===false){throw InvalidArgument::pdbn1f(1,base64_decode('JHJlcXVlc3Rz'),base64_decode('YXJyYXl8QXJyYXlBY2Nlc3MmVHJhdmVyc2FibGU='),gettype($kjze2a));}if(is_array($nipv1d)===false){throw InvalidArgument::pdbn1f(2,base64_decode('JG9wdGlvbnM='),base64_decode('YXJyYXk='),gettype($nipv1d));}$phnf2c=curl_multi_init();$gthf2d=[];$mzcz2e=[];$jmsp2f=get_class($this);foreach($kjze2a as $vokl30=>$nata31){$gthf2d[$vokl30]=new $jmsp2f();$mzcz2e[$vokl30]=$gthf2d[$vokl30]->qzlw4($nata31[base64_decode('dXJs')],$nata31[base64_decode('aGVhZGVycw==')],$nata31[base64_decode('ZGF0YQ==')],$nata31[base64_decode('b3B0aW9ucw==')]);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfbXVsdGlfYWRk'),[&$mzcz2e[$vokl30]]);curl_multi_add_handle($phnf2c,$mzcz2e[$vokl30]);}$rkzu32=0;$tryz33=[];$yama34=count($gthf2d);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfbXVsdGlfZXhlYw=='),[&$phnf2c]);do{$ukvn35=0;do{$zlod36=curl_multi_exec($phnf2c,$ukvn35);}while($zlod36===CURLM_CALL_MULTI_PERFORM);$ftrq37=[];while($amng38=curl_multi_info_read($phnf2c)){$nudg39=array_search($amng38[base64_decode('aGFuZGxl')],$mzcz2e,true);if(!isset($ftrq37[$nudg39])){$ftrq37[$nudg39]=$amng38;}}foreach($ftrq37 as $nudg39=>$amng38){$nipv1d=$kjze2a[$nudg39][base64_decode('b3B0aW9ucw==')];if($amng38[base64_decode('cmVzdWx0')]!==CURLE_OK){$cseb3a=curl_error($amng38[base64_decode('aGFuZGxl')]);$clvf3b=new vgjp3c($cseb3a,CurlException::EASY,$amng38[base64_decode('aGFuZGxl')],$amng38[base64_decode('cmVzdWx0')]);$tryz33[$nudg39]=$clvf3b;$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('dHJhbnNwb3J0LmludGVybmFsLnBhcnNlX2Vycm9y'),[&$tryz33[$nudg39],$kjze2a[$nudg39]]);}else{$tryz33[$nudg39]=$gthf2d[$nudg39]->lkvh6($gthf2d[$nudg39]->$sitf25,$nipv1d);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('dHJhbnNwb3J0LmludGVybmFsLnBhcnNlX3Jlc3BvbnNl'),[&$tryz33[$nudg39],$kjze2a[$nudg39]]);}curl_multi_remove_handle($phnf2c,$amng38[base64_decode('aGFuZGxl')]);curl_close($amng38[base64_decode('aGFuZGxl')]);if(!is_string($tryz33[$nudg39])){$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('bXVsdGlwbGUucmVxdWVzdC5jb21wbGV0ZQ=='),[&$tryz33[$nudg39],$nudg39]);}$rkzu32++;}}while($ukvn35||$rkzu32<$yama34);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9tdWx0aV9leGVj'),[&$phnf2c]);curl_multi_close($phnf2c);return $tryz33;}/**
* Get the cURL handle for use in a multi-request
*
* @param string $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
* @return resource|\CurlHandle Subrequest's cURL handle
*/ public function&qzlw4($umph1b,$rklpe,$lugw1c,$nipv1d){$this->zdop5($umph1b,$rklpe,$lugw1c,$nipv1d);if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false){$this->$konf22=fopen($nipv1d[base64_decode('ZmlsZW5hbWU=')],base64_decode('d2I='));}$this->$sitf25='';$this->$edvg26=0;$this->$eksj27=false;if($nipv1d[base64_decode('bWF4X2J5dGVz')]!==false){$this->$eksj27=$nipv1d[base64_decode('bWF4X2J5dGVz')];}$this->$vnll20=$nipv1d[base64_decode('aG9va3M=')];return $this->$yrxs1a;}/**
* Setup the cURL handle for the given data
*
* @param string $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
*/ private function zdop5($umph1b,$rklpe,$lugw1c,$nipv1d){$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfcmVxdWVzdA=='),[&$this->$yrxs1a]);if(!isset($rklpe[base64_decode('Q29ubmVjdGlvbg==')])){$rklpe[base64_decode('Q29ubmVjdGlvbg==')]=base64_decode('Y2xvc2U=');}/**
* Add "Expect" header.
*
* By default, cURL adds a "Expect: 100-Continue" to most requests. This header can
* add as much as a second to the time it takes for cURL to perform a request. To
* prevent this, we need to set an empty "Expect" header. To match the behaviour of
* Guzzle, we'll add the empty header to requests that are smaller than 1 MB and use
* HTTP/1.1.
*
* https://curl.se/mail/lib-2017-07/0013.html
*/ if(!isset($rklpe[base64_decode('RXhwZWN0')])&&$nipv1d[base64_decode('cHJvdG9jb2xfdmVyc2lvbg==')]===1.1){$rklpe[base64_decode('RXhwZWN0')]=$this->pchyb($lugw1c);}$rklpe=Requests::ouvq3d($rklpe);if(!empty($lugw1c)){$lcpi3e=$nipv1d[base64_decode('ZGF0YV9mb3JtYXQ=')];if($lcpi3e===base64_decode('cXVlcnk=')){$umph1b=self::bajx9($umph1b,$lugw1c);$lugw1c='';}elseif(!is_string($lugw1c)){$lugw1c=http_build_query($lugw1c,'',base64_decode('Jg=='));}}switch($nipv1d[base64_decode('dHlwZQ==')]){case Requests::POST:curl_setopt($this->$yrxs1a,CURLOPT_POST,true);curl_setopt($this->$yrxs1a,CURLOPT_POSTFIELDS,$lugw1c);break;case Requests::HEAD:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);curl_setopt($this->$yrxs1a,CURLOPT_NOBODY,true);break;case Requests::TRACE:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);break;case Requests::PATCH:case Requests::PUT:case Requests::DELETE:case Requests::OPTIONS:default:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);if(!empty($lugw1c)){curl_setopt($this->$yrxs1a,CURLOPT_POSTFIELDS,$lugw1c);}}$boxz3f=max($nipv1d[base64_decode('dGltZW91dA==')],1);if(is_int($boxz3f)||$this->$yblp19<self::CURL_7_16_2){curl_setopt($this->$yrxs1a,CURLOPT_TIMEOUT,ceil($boxz3f));}else{curl_setopt($this->$yrxs1a,CURLOPT_TIMEOUT_MS,round($boxz3f*1000));}if(is_int($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')])||$this->$yblp19<self::CURL_7_16_2){curl_setopt($this->$yrxs1a,CURLOPT_CONNECTTIMEOUT,ceil($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')]));}else{curl_setopt($this->$yrxs1a,CURLOPT_CONNECTTIMEOUT_MS,round($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')]*1000));}curl_setopt($this->$yrxs1a,CURLOPT_URL,$umph1b);curl_setopt($this->$yrxs1a,CURLOPT_USERAGENT,$nipv1d[base64_decode('dXNlcmFnZW50')]);if(!empty($rklpe)){curl_setopt($this->$yrxs1a,CURLOPT_HTTPHEADER,$rklpe);}if($nipv1d[base64_decode('cHJvdG9jb2xfdmVyc2lvbg==')]===1.1){curl_setopt($this->$yrxs1a,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);}else{curl_setopt($this->$yrxs1a,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_0);}if($nipv1d[base64_decode('YmxvY2tpbmc=')]===true){curl_setopt($this->$yrxs1a,CURLOPT_HEADERFUNCTION,[$this,base64_decode('c3RyZWFtX2hlYWRlcnM=')]);curl_setopt($this->$yrxs1a,CURLOPT_WRITEFUNCTION,[$this,base64_decode('c3RyZWFtX2JvZHk=')]);curl_setopt($this->$yrxs1a,CURLOPT_BUFFERSIZE,Requests::BUFFER_SIZE);}}/**
* Process a response
*
* @param string $response Response data from the body
* @param array $options Request options
* @return string|false HTTP response data including headers. False if non-blocking.
* @throws \WpOrg\Requests\Exception
*/ public function lkvh6($dkyv28,$nipv1d){if($nipv1d[base64_decode('YmxvY2tpbmc=')]===false){$zqpi40='';$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9yZXF1ZXN0'),[&$zqpi40]);return false;}if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false&&$this->$konf22){fclose($this->$konf22);$this->$prco29=trim($this->$prco29);}else{$this->$prco29.=$dkyv28;}if(curl_errno($this->$yrxs1a)){$iksp23=sprintf(base64_decode('Y1VSTCBlcnJvciAlczogJXM='),curl_errno($this->$yrxs1a),curl_error($this->$yrxs1a));throw new lsvy24($iksp23,base64_decode('Y3VybGVycm9y'),$this->$yrxs1a);}$this->$jiju41=curl_getinfo($this->$yrxs1a);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9yZXF1ZXN0'),[&$this->$prco29,&$this->$jiju41]);return $this->$prco29;}/**
* Collect the headers as they are received
*
* @param resource|\CurlHandle $handle cURL handle
* @param string $headers Header string
* @return integer Length of provided header
*/ public function fclp7($uqkx12,$rklpe){if($this->$rqwj42){$this->$prco29='';$this->$rqwj42=false;}$this->$prco29.=$rklpe;if($rklpe===base64_decode('DQo=')){$this->$rqwj42=true;}return strlen($rklpe);}/**
* Collect data as it's received
*
* @since 1.6.1
*
* @param resource|\CurlHandle $handle cURL handle
* @param string $data Body data
* @return integer Length of provided data
*/ public function rnsx8($uqkx12,$lugw1c){$this->$vnll20->cjqg21(base64_decode('cmVxdWVzdC5wcm9ncmVzcw=='),[$lugw1c,$this->$edvg26,$this->$eksj27]);$znyw43=strlen($lugw1c);if($this->$eksj27){if($this->$edvg26===$this->$eksj27){return $znyw43;}if(($this->$edvg26+$znyw43)>$this->$eksj27){$kknc44=($this->$eksj27-$this->$edvg26);$lugw1c=substr($lugw1c,0,$kknc44);}}if($this->$konf22){fwrite($this->$konf22,$lugw1c);}else{$this->$sitf25.=$lugw1c;}$this->$edvg26+=strlen($lugw1c);return $znyw43;}/**
* Format a URL given GET data
*
* @param string $url
* @param array|object $data Data to build query using, see {@link https://www.php.net/http_build_query}
* @return string URL with data
*/ private static function bajx9($umph1b,$lugw1c){if(!empty($lugw1c)){$xpyn45='';$vfrv46=parse_url($umph1b);if(empty($vfrv46[base64_decode('cXVlcnk=')])){$vfrv46[base64_decode('cXVlcnk=')]='';}else{$xpyn45=$vfrv46[base64_decode('cXVlcnk=')];}$xpyn45.=base64_decode('Jg==').http_build_query($lugw1c,'',base64_decode('Jg=='));$xpyn45=trim($xpyn45,base64_decode('Jg=='));if(empty($vfrv46[base64_decode('cXVlcnk=')])){$umph1b.=base64_decode('Pw==').$xpyn45;}else{$umph1b=str_replace($vfrv46[base64_decode('cXVlcnk=')],$xpyn45,$umph1b);}}return $umph1b;}/**
* Self-test whether the transport can be used.
*
* The available capabilities to test for can be found in {@see \WpOrg\Requests\Capability}.
*
* @codeCoverageIgnore
* @param array<string, bool> $capabilities Optional. Associative array of capabilities to test against, i.e. `['<capability>' => true]`.
* @return bool Whether the transport can be used.
*/ public static function wfgta($vioi47=[]){if(!function_exists(base64_decode('Y3VybF9pbml0'))||!function_exists(base64_decode('Y3VybF9leGVj'))){return false;}if(isset($vioi47[Capability::SSL])&&$vioi47[Capability::SSL]){$ccgg48=curl_version();if(!(CURL_VERSION_SSL&$ccgg48[base64_decode('ZmVhdHVyZXM=')])){return false;}}return true;}/**
* Get the correct "Expect" header for the given request data.
*
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD.
* @return string The "Expect" header.
*/ private function pchyb($lugw1c){if(!is_array($lugw1c)){return strlen((string)$lugw1c)>=1048576?base64_decode('MTAwLUNvbnRpbnVl'):'';}$qziq49=0;$vqfd4a=new ioak4b(new ipeb4c($lugw1c));foreach($vqfd4a as $zoaj4d){$qziq49+=strlen((string)$zoaj4d);if($qziq49>=1048576){return base64_decode('MTAwLUNvbnRpbnVl');}}return '';}}?>
Did this file decode correctly?
Original Code
<?php /**
* cURL HTTP transport
*
* @package Requests\Transport
*/ namespace WpOrg\Requests\Transport;use RecursiveArrayIterator;use RecursiveIteratorIterator;use WpOrg\Requests\Capability;use WpOrg\Requests\Exception;use WpOrg\Requests\Exception\InvalidArgument;use WpOrg\Requests\Exception\Transport\Curl as CurlException;use WpOrg\Requests\Requests;use WpOrg\Requests\Transport;use WpOrg\Requests\Utility\InputValidator;/**
* cURL HTTP transport
*
* @package Requests\Transport
*/ final class agszc implements ozkfd{const CURL_7_10_5=0x070A05;const CURL_7_16_2=0x071002;/**
* Raw HTTP data
*
* @var string
*/ public $rklpe='';/**
* Raw body data
*
* @var string
*/ public $hxddf='';/**
* Information on the current request
*
* @var array cURL information array, see {@link https://www.php.net/curl_getinfo}
*/ public $gevs10;/**
* cURL version number
*
* @var int
*/ public $mpdf11;/**
* cURL handle
*
* @var resource|\CurlHandle Resource in PHP < 8.0, Instance of CurlHandle in PHP >= 8.0.
*/ private $uqkx12;/**
* Hook dispatcher instance
*
* @var \WpOrg\Requests\Hooks
*/ private $khvi13;/**
* Have we finished the headers yet?
*
* @var boolean
*/ private $eyfy14=false;/**
* If streaming to a file, keep the file pointer
*
* @var resource
*/ private $msyi15;/**
* How many bytes are in the response body?
*
* @var int
*/ private $gkik16;/**
* What's the maximum number of bytes we should keep?
*
* @var int|bool Byte count, or false if no limit.
*/ private $wflo17;/**
* Constructor
*/ public function muuo0(){$xaol18=curl_version();$this->$yblp19=$xaol18[base64_decode('dmVyc2lvbl9udW1iZXI=')];$this->$yrxs1a=curl_init();curl_setopt($this->$yrxs1a,CURLOPT_HEADER,false);curl_setopt($this->$yrxs1a,CURLOPT_RETURNTRANSFER,1);if($this->$yblp19>=self::CURL_7_10_5){curl_setopt($this->$yrxs1a,CURLOPT_ENCODING,'');}if(defined(base64_decode('Q1VSTE9QVF9QUk9UT0NPTFM='))){curl_setopt($this->$yrxs1a,CURLOPT_PROTOCOLS,CURLPROTO_HTTP|CURLPROTO_HTTPS);}if(defined(base64_decode('Q1VSTE9QVF9SRURJUl9QUk9UT0NPTFM='))){curl_setopt($this->$yrxs1a,CURLOPT_REDIR_PROTOCOLS,CURLPROTO_HTTP|CURLPROTO_HTTPS);}}/**
* Destructor
*/ public function axig1(){if(is_resource($this->$yrxs1a)){curl_close($this->$yrxs1a);}}/**
* Perform a request
*
* @param string|Stringable $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
* @return string Raw HTTP result
*
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $url argument is not a string or Stringable.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $headers argument is not an array.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $data parameter is not an array or string.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $options argument is not an array.
* @throws \WpOrg\Requests\Exception On a cURL error (`curlerror`)
*/ public function wegb2($umph1b,$rklpe=[],$lugw1c=[],$nipv1d=[]){if(InputValidator::gxbv1e($umph1b)===false){throw InvalidArgument::pdbn1f(1,base64_decode('JHVybA=='),base64_decode('c3RyaW5nfFN0cmluZ2FibGU='),gettype($umph1b));}if(is_array($rklpe)===false){throw InvalidArgument::pdbn1f(2,base64_decode('JGhlYWRlcnM='),base64_decode('YXJyYXk='),gettype($rklpe));}if(!is_array($lugw1c)&&!is_string($lugw1c)){if($lugw1c===null){$lugw1c='';}else{throw InvalidArgument::pdbn1f(3,base64_decode('JGRhdGE='),base64_decode('YXJyYXl8c3RyaW5n'),gettype($lugw1c));}}if(is_array($nipv1d)===false){throw InvalidArgument::pdbn1f(4,base64_decode('JG9wdGlvbnM='),base64_decode('YXJyYXk='),gettype($nipv1d));}$this->$vnll20=$nipv1d[base64_decode('aG9va3M=')];$this->zdop5($umph1b,$rklpe,$lugw1c,$nipv1d);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfc2VuZA=='),[&$this->$yrxs1a]);if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false){$this->$konf22=@fopen($nipv1d[base64_decode('ZmlsZW5hbWU=')],base64_decode('d2I='));if($this->$konf22===false){$iksp23=error_get_last();throw new lsvy24($iksp23[base64_decode('bWVzc2FnZQ==')],base64_decode('Zm9wZW4='));}}$this->$sitf25='';$this->$edvg26=0;$this->$eksj27=false;if($nipv1d[base64_decode('bWF4X2J5dGVz')]!==false){$this->$eksj27=$nipv1d[base64_decode('bWF4X2J5dGVz')];}if(isset($nipv1d[base64_decode('dmVyaWZ5')])){if($nipv1d[base64_decode('dmVyaWZ5')]===false){curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYPEER,0);}elseif(is_string($nipv1d[base64_decode('dmVyaWZ5')])){curl_setopt($this->$yrxs1a,CURLOPT_CAINFO,$nipv1d[base64_decode('dmVyaWZ5')]);}}if(isset($nipv1d[base64_decode('dmVyaWZ5bmFtZQ==')])&&$nipv1d[base64_decode('dmVyaWZ5bmFtZQ==')]===false){curl_setopt($this->$yrxs1a,CURLOPT_SSL_VERIFYHOST,0);}curl_exec($this->$yrxs1a);$dkyv28=$this->$sitf25;$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9zZW5k'),[]);if(curl_errno($this->$yrxs1a)===CURLE_WRITE_ERROR||curl_errno($this->$yrxs1a)===CURLE_BAD_CONTENT_ENCODING){curl_setopt($this->$yrxs1a,CURLOPT_ENCODING,base64_decode('bm9uZQ=='));$this->$sitf25='';$this->$edvg26=0;curl_exec($this->$yrxs1a);$dkyv28=$this->$sitf25;}$this->lkvh6($dkyv28,$nipv1d);curl_setopt($this->$yrxs1a,CURLOPT_HEADERFUNCTION,null);curl_setopt($this->$yrxs1a,CURLOPT_WRITEFUNCTION,null);return $this->$prco29;}/**
* Send multiple requests simultaneously
*
* @param array $requests Request data
* @param array $options Global options
* @return array Array of \WpOrg\Requests\Response objects (may contain \WpOrg\Requests\Exception or string responses as well)
*
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $requests argument is not an array or iterable object with array access.
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $options argument is not an array.
*/ public function lidf3($kjze2a,$nipv1d){if(empty($kjze2a)){return[];}if(InputValidator::nhgj2b($kjze2a)===false||InputValidator::is_iterable($kjze2a)===false){throw InvalidArgument::pdbn1f(1,base64_decode('JHJlcXVlc3Rz'),base64_decode('YXJyYXl8QXJyYXlBY2Nlc3MmVHJhdmVyc2FibGU='),gettype($kjze2a));}if(is_array($nipv1d)===false){throw InvalidArgument::pdbn1f(2,base64_decode('JG9wdGlvbnM='),base64_decode('YXJyYXk='),gettype($nipv1d));}$phnf2c=curl_multi_init();$gthf2d=[];$mzcz2e=[];$jmsp2f=get_class($this);foreach($kjze2a as $vokl30=>$nata31){$gthf2d[$vokl30]=new $jmsp2f();$mzcz2e[$vokl30]=$gthf2d[$vokl30]->qzlw4($nata31[base64_decode('dXJs')],$nata31[base64_decode('aGVhZGVycw==')],$nata31[base64_decode('ZGF0YQ==')],$nata31[base64_decode('b3B0aW9ucw==')]);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfbXVsdGlfYWRk'),[&$mzcz2e[$vokl30]]);curl_multi_add_handle($phnf2c,$mzcz2e[$vokl30]);}$rkzu32=0;$tryz33=[];$yama34=count($gthf2d);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfbXVsdGlfZXhlYw=='),[&$phnf2c]);do{$ukvn35=0;do{$zlod36=curl_multi_exec($phnf2c,$ukvn35);}while($zlod36===CURLM_CALL_MULTI_PERFORM);$ftrq37=[];while($amng38=curl_multi_info_read($phnf2c)){$nudg39=array_search($amng38[base64_decode('aGFuZGxl')],$mzcz2e,true);if(!isset($ftrq37[$nudg39])){$ftrq37[$nudg39]=$amng38;}}foreach($ftrq37 as $nudg39=>$amng38){$nipv1d=$kjze2a[$nudg39][base64_decode('b3B0aW9ucw==')];if($amng38[base64_decode('cmVzdWx0')]!==CURLE_OK){$cseb3a=curl_error($amng38[base64_decode('aGFuZGxl')]);$clvf3b=new vgjp3c($cseb3a,CurlException::EASY,$amng38[base64_decode('aGFuZGxl')],$amng38[base64_decode('cmVzdWx0')]);$tryz33[$nudg39]=$clvf3b;$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('dHJhbnNwb3J0LmludGVybmFsLnBhcnNlX2Vycm9y'),[&$tryz33[$nudg39],$kjze2a[$nudg39]]);}else{$tryz33[$nudg39]=$gthf2d[$nudg39]->lkvh6($gthf2d[$nudg39]->$sitf25,$nipv1d);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('dHJhbnNwb3J0LmludGVybmFsLnBhcnNlX3Jlc3BvbnNl'),[&$tryz33[$nudg39],$kjze2a[$nudg39]]);}curl_multi_remove_handle($phnf2c,$amng38[base64_decode('aGFuZGxl')]);curl_close($amng38[base64_decode('aGFuZGxl')]);if(!is_string($tryz33[$nudg39])){$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('bXVsdGlwbGUucmVxdWVzdC5jb21wbGV0ZQ=='),[&$tryz33[$nudg39],$nudg39]);}$rkzu32++;}}while($ukvn35||$rkzu32<$yama34);$nata31[base64_decode('b3B0aW9ucw==')][base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9tdWx0aV9leGVj'),[&$phnf2c]);curl_multi_close($phnf2c);return $tryz33;}/**
* Get the cURL handle for use in a multi-request
*
* @param string $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
* @return resource|\CurlHandle Subrequest's cURL handle
*/ public function&qzlw4($umph1b,$rklpe,$lugw1c,$nipv1d){$this->zdop5($umph1b,$rklpe,$lugw1c,$nipv1d);if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false){$this->$konf22=fopen($nipv1d[base64_decode('ZmlsZW5hbWU=')],base64_decode('d2I='));}$this->$sitf25='';$this->$edvg26=0;$this->$eksj27=false;if($nipv1d[base64_decode('bWF4X2J5dGVz')]!==false){$this->$eksj27=$nipv1d[base64_decode('bWF4X2J5dGVz')];}$this->$vnll20=$nipv1d[base64_decode('aG9va3M=')];return $this->$yrxs1a;}/**
* Setup the cURL handle for the given data
*
* @param string $url URL to request
* @param array $headers Associative array of request headers
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
* @param array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
*/ private function zdop5($umph1b,$rklpe,$lugw1c,$nipv1d){$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5iZWZvcmVfcmVxdWVzdA=='),[&$this->$yrxs1a]);if(!isset($rklpe[base64_decode('Q29ubmVjdGlvbg==')])){$rklpe[base64_decode('Q29ubmVjdGlvbg==')]=base64_decode('Y2xvc2U=');}/**
* Add "Expect" header.
*
* By default, cURL adds a "Expect: 100-Continue" to most requests. This header can
* add as much as a second to the time it takes for cURL to perform a request. To
* prevent this, we need to set an empty "Expect" header. To match the behaviour of
* Guzzle, we'll add the empty header to requests that are smaller than 1 MB and use
* HTTP/1.1.
*
* https://curl.se/mail/lib-2017-07/0013.html
*/ if(!isset($rklpe[base64_decode('RXhwZWN0')])&&$nipv1d[base64_decode('cHJvdG9jb2xfdmVyc2lvbg==')]===1.1){$rklpe[base64_decode('RXhwZWN0')]=$this->pchyb($lugw1c);}$rklpe=Requests::ouvq3d($rklpe);if(!empty($lugw1c)){$lcpi3e=$nipv1d[base64_decode('ZGF0YV9mb3JtYXQ=')];if($lcpi3e===base64_decode('cXVlcnk=')){$umph1b=self::bajx9($umph1b,$lugw1c);$lugw1c='';}elseif(!is_string($lugw1c)){$lugw1c=http_build_query($lugw1c,'',base64_decode('Jg=='));}}switch($nipv1d[base64_decode('dHlwZQ==')]){case Requests::POST:curl_setopt($this->$yrxs1a,CURLOPT_POST,true);curl_setopt($this->$yrxs1a,CURLOPT_POSTFIELDS,$lugw1c);break;case Requests::HEAD:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);curl_setopt($this->$yrxs1a,CURLOPT_NOBODY,true);break;case Requests::TRACE:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);break;case Requests::PATCH:case Requests::PUT:case Requests::DELETE:case Requests::OPTIONS:default:curl_setopt($this->$yrxs1a,CURLOPT_CUSTOMREQUEST,$nipv1d[base64_decode('dHlwZQ==')]);if(!empty($lugw1c)){curl_setopt($this->$yrxs1a,CURLOPT_POSTFIELDS,$lugw1c);}}$boxz3f=max($nipv1d[base64_decode('dGltZW91dA==')],1);if(is_int($boxz3f)||$this->$yblp19<self::CURL_7_16_2){curl_setopt($this->$yrxs1a,CURLOPT_TIMEOUT,ceil($boxz3f));}else{curl_setopt($this->$yrxs1a,CURLOPT_TIMEOUT_MS,round($boxz3f*1000));}if(is_int($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')])||$this->$yblp19<self::CURL_7_16_2){curl_setopt($this->$yrxs1a,CURLOPT_CONNECTTIMEOUT,ceil($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')]));}else{curl_setopt($this->$yrxs1a,CURLOPT_CONNECTTIMEOUT_MS,round($nipv1d[base64_decode('Y29ubmVjdF90aW1lb3V0')]*1000));}curl_setopt($this->$yrxs1a,CURLOPT_URL,$umph1b);curl_setopt($this->$yrxs1a,CURLOPT_USERAGENT,$nipv1d[base64_decode('dXNlcmFnZW50')]);if(!empty($rklpe)){curl_setopt($this->$yrxs1a,CURLOPT_HTTPHEADER,$rklpe);}if($nipv1d[base64_decode('cHJvdG9jb2xfdmVyc2lvbg==')]===1.1){curl_setopt($this->$yrxs1a,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1);}else{curl_setopt($this->$yrxs1a,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_1_0);}if($nipv1d[base64_decode('YmxvY2tpbmc=')]===true){curl_setopt($this->$yrxs1a,CURLOPT_HEADERFUNCTION,[$this,base64_decode('c3RyZWFtX2hlYWRlcnM=')]);curl_setopt($this->$yrxs1a,CURLOPT_WRITEFUNCTION,[$this,base64_decode('c3RyZWFtX2JvZHk=')]);curl_setopt($this->$yrxs1a,CURLOPT_BUFFERSIZE,Requests::BUFFER_SIZE);}}/**
* Process a response
*
* @param string $response Response data from the body
* @param array $options Request options
* @return string|false HTTP response data including headers. False if non-blocking.
* @throws \WpOrg\Requests\Exception
*/ public function lkvh6($dkyv28,$nipv1d){if($nipv1d[base64_decode('YmxvY2tpbmc=')]===false){$zqpi40='';$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9yZXF1ZXN0'),[&$zqpi40]);return false;}if($nipv1d[base64_decode('ZmlsZW5hbWU=')]!==false&&$this->$konf22){fclose($this->$konf22);$this->$prco29=trim($this->$prco29);}else{$this->$prco29.=$dkyv28;}if(curl_errno($this->$yrxs1a)){$iksp23=sprintf(base64_decode('Y1VSTCBlcnJvciAlczogJXM='),curl_errno($this->$yrxs1a),curl_error($this->$yrxs1a));throw new lsvy24($iksp23,base64_decode('Y3VybGVycm9y'),$this->$yrxs1a);}$this->$jiju41=curl_getinfo($this->$yrxs1a);$nipv1d[base64_decode('aG9va3M=')]->cjqg21(base64_decode('Y3VybC5hZnRlcl9yZXF1ZXN0'),[&$this->$prco29,&$this->$jiju41]);return $this->$prco29;}/**
* Collect the headers as they are received
*
* @param resource|\CurlHandle $handle cURL handle
* @param string $headers Header string
* @return integer Length of provided header
*/ public function fclp7($uqkx12,$rklpe){if($this->$rqwj42){$this->$prco29='';$this->$rqwj42=false;}$this->$prco29.=$rklpe;if($rklpe===base64_decode('DQo=')){$this->$rqwj42=true;}return strlen($rklpe);}/**
* Collect data as it's received
*
* @since 1.6.1
*
* @param resource|\CurlHandle $handle cURL handle
* @param string $data Body data
* @return integer Length of provided data
*/ public function rnsx8($uqkx12,$lugw1c){$this->$vnll20->cjqg21(base64_decode('cmVxdWVzdC5wcm9ncmVzcw=='),[$lugw1c,$this->$edvg26,$this->$eksj27]);$znyw43=strlen($lugw1c);if($this->$eksj27){if($this->$edvg26===$this->$eksj27){return $znyw43;}if(($this->$edvg26+$znyw43)>$this->$eksj27){$kknc44=($this->$eksj27-$this->$edvg26);$lugw1c=substr($lugw1c,0,$kknc44);}}if($this->$konf22){fwrite($this->$konf22,$lugw1c);}else{$this->$sitf25.=$lugw1c;}$this->$edvg26+=strlen($lugw1c);return $znyw43;}/**
* Format a URL given GET data
*
* @param string $url
* @param array|object $data Data to build query using, see {@link https://www.php.net/http_build_query}
* @return string URL with data
*/ private static function bajx9($umph1b,$lugw1c){if(!empty($lugw1c)){$xpyn45='';$vfrv46=parse_url($umph1b);if(empty($vfrv46[base64_decode('cXVlcnk=')])){$vfrv46[base64_decode('cXVlcnk=')]='';}else{$xpyn45=$vfrv46[base64_decode('cXVlcnk=')];}$xpyn45.=base64_decode('Jg==').http_build_query($lugw1c,'',base64_decode('Jg=='));$xpyn45=trim($xpyn45,base64_decode('Jg=='));if(empty($vfrv46[base64_decode('cXVlcnk=')])){$umph1b.=base64_decode('Pw==').$xpyn45;}else{$umph1b=str_replace($vfrv46[base64_decode('cXVlcnk=')],$xpyn45,$umph1b);}}return $umph1b;}/**
* Self-test whether the transport can be used.
*
* The available capabilities to test for can be found in {@see \WpOrg\Requests\Capability}.
*
* @codeCoverageIgnore
* @param array<string, bool> $capabilities Optional. Associative array of capabilities to test against, i.e. `['<capability>' => true]`.
* @return bool Whether the transport can be used.
*/ public static function wfgta($vioi47=[]){if(!function_exists(base64_decode('Y3VybF9pbml0'))||!function_exists(base64_decode('Y3VybF9leGVj'))){return false;}if(isset($vioi47[Capability::SSL])&&$vioi47[Capability::SSL]){$ccgg48=curl_version();if(!(CURL_VERSION_SSL&$ccgg48[base64_decode('ZmVhdHVyZXM=')])){return false;}}return true;}/**
* Get the correct "Expect" header for the given request data.
*
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD.
* @return string The "Expect" header.
*/ private function pchyb($lugw1c){if(!is_array($lugw1c)){return strlen((string)$lugw1c)>=1048576?base64_decode('MTAwLUNvbnRpbnVl'):'';}$qziq49=0;$vqfd4a=new ioak4b(new ipeb4c($lugw1c));foreach($vqfd4a as $zoaj4d){$qziq49+=strlen((string)$zoaj4d);if($qziq49>=1048576){return base64_decode('MTAwLUNvbnRpbnVl');}}return '';}}?>
Function Calls
None |
Stats
MD5 | 3d6ea08d496fed227199a90670b8a3e3 |
Eval Count | 0 |
Decode Time | 104 ms |