true, CURLOPT_URL => $url, CURLOPT_TIMEOUT => 10, CURLOPT_CONNECTTIMEOUT => 5, CURLOPT_SSL_VERIFYPEER => FALSE, CURLOPT_HEADER => $headershow, CURLOPT_USERAGENT => $this->httph ); curl_setopt_array($ch, $opts); if ($otherheader) curl_setopt($ch, CURLOPT_HTTPHEADER, $otherheader); if ($cookie) curl_setopt($ch, CURLOPT_COOKIE, $cookie); if ($postparam) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postparam); } $data = curl_exec($ch); if (curl_errno($ch)) return false; curl_close($ch); return ($data) ? $data : false; } }