src/Octopush/Curl.php
public function setOptions($url, $query, $port)
    {
        curl_setopt_array($this->handle, [
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_PORT => $port,
            CURLOPT_POSTFIELDS => $query,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_SSL_VERIFYPEER => false,
            CURLOPT_FRESH_CONNECT => true
        ]);
    }
public function setOptions($url, $query, $port)
    {
        curl_setopt_array($this->handle, [
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_PORT => $port,
            CURLOPT_POSTFIELDS => $query,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_SSL_VERIFYPEER => false,
            CURLOPT_FRESH_CONNECT => true
        ]);
    }
public function setOptions ( $ url , $ query , $ port ) { curl_setopt_array ( $ this -> handle , [ CURLOPT_URL => $ url , CURLOPT_POST => true , CURLOPT_PORT => $ port , CURLOPT_POSTFIELDS => $ query , CURLOPT_RETURNTRANSFER => true , CURLOPT_SSL_VERIFYPEER => false , CURLOPT_FRESH_CONNECT => true ] ) ; }
Sets the Curl options

@param  string $url  The request url
@param string $query The query string builded
@param int $port The port must be 80 or 443
@return void
Sets the Curl options