����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.116.239.148 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/bofirmacademy.com/vendor/mercadopago/dx-php/src/MercadoPago/Http/ |
Upload File : |
<?php namespace MercadoPago\Http; use Exception; /** * CurlRequest Class Doc Comment * * @package MercadoPago\Http */ class CurlRequest implements HttpRequest { /** * @var null|resource */ private $handle = null; /** * @codeCoverageIgnore * CurlRequest constructor. * * @param null $uri */ public function __construct($uri = null) { if (!extension_loaded("curl")) { throw new Exception("cURL extension not found. You need to enable cURL in your php.ini or another configuration you have."); } $this->handle = curl_init($uri); return $this->handle; } /** * @codeCoverageIgnore * @param $name * @param $value */ public function setOption($name, $value) { curl_setopt($this->handle, $name, $value); } /** * @codeCoverageIgnore * @return mixed */ public function execute() { return curl_exec($this->handle); } /** * @codeCoverageIgnore * @param $name * * @return mixed */ public function getInfo($name) { return curl_getinfo($this->handle, $name); } /** *@codeCoverageIgnore */ public function close() { curl_close($this->handle); } /** * @codeCoverageIgnore * @return string */ public function error() { return curl_error($this->handle); } }