url = $url; return $this; } public function setMethod($method) { $this->method = $method; return $this; } public function setHeaders(array $headers) { $this->headers = $headers; return $this; } public function addHeader($header) { $this->headers[] = $header; return $this; } public function setContentAndLength($content) { $this->content = $content; $this->addHeader('Content-Length: ' . strlen($content)); return $this; } public function setTimeoutMs($timeoutMs) { $this->timeout = $timeoutMs / 1000; return $this; } /** * doRequest * * @access public * @return Amcsi_HttpProxy_Response */ public function doRequest() { static $curlExists; if (!isset($curlExists)) { $curlExists = function_exists('curl_version'); } if ($curlExists) { $client = new Amcsi_HttpProxy_HttpClient_Curl; } else { $client = new Amcsi_HttpProxy_HttpClient_FileGetContents; } $client = new Amcsi_HttpProxy_HttpClient_FileGetContents; $client->setMethod($this->method); $client->setTimeout($this->timeout); $client->setContent($this->content); $response = $client->doRequest($this->url, $this->headers); return $response; } } __halt_compiler();----SIGNATURE:----M8aFheVGkmCc8/jS1IwhXxia+wlSNwlutXRH+4laQpxrsoKGS6upBoUxSOnDpilC3FSjQMtylOxPM855vZSeBNMA1qa0HO70ypagacdmeXm5XcG+8LOqIgW7oFibHGL54o+YHoLFuZ2yq5odaI2uapCi/uqiLAwA9GBiyCTgsuO50pMDiFachmg2RjWgsx6lles7ia+5OCkIcXxr6rBWQsCVf/NVNXMgTPYFlZ1uc8jxKTeYiPMY3Tj5+ahg6+lp1znTpYegmA9uWmZjyKQI42uMdTBaQe+rLlisHu1xzGe+6Yc+5Rn19kkOn4DXmM+GWUhlYWKMNVDkV8CnAcrVFppbEnZsxISaT81D5R+TymdI8N1OtALlLqUCvwU9xuc0IDpcCPZFWUftcIpBW2TJ+7GxlD71pG/CdyT1CyYD3Oecb3KdpVQiydqt/TsACwyUVcibGO2rRSZrUjnF10Ee8nupM9wVyOrKRtJKEU/UHqOzaJ4FuG8wlE7Lqs+HdJVEIi7AhCTEJHaMzar+VZq2QU1/9s+bavH9NqB61vayebTd6hHxkFwyf9XscaecFKDfMNyvQM/bjaIUbWJneXItlSmjr7eEVLBJgv9VHkVf5YxYaEJqqX6K9e1K1RGC2IwEMkkXGXIh0pHivWYr9YVQm6waH7hJ9oijpFJ1Tekq1js=----ATTACHMENT:----MzMzMDMwMzE1NTI4NTgyMCAxNzM1MzcxOTQwMTEyNDQyIDU5NTI4NTkyNzQ4ODk0OTc=