public function post($url, $data = array(), array $extra = array())
    {
        $curl = new Curl(array(
            CURLOPT_URL => $url,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_HEADER => false,
            CURLOPT_POST => count($data),
            CURLOPT_POSTFIELDS => http_build_query($data)

        ), $extra);

        return $curl->exec();
    }
public function post($url, $data = array(), array $extra = array())
    {
        $curl = new Curl(array(
            CURLOPT_URL => $url,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_HEADER => false,
            CURLOPT_POST => count($data),
            CURLOPT_POSTFIELDS => http_build_query($data)

        ), $extra);

        return $curl->exec();
    }
public function post ( $ url , $ data = array ( ) , array $ extra = array ( ) ) { $ curl = new Curl ( array ( CURLOPT_URL => $ url , CURLOPT_RETURNTRANSFER => true , CURLOPT_HEADER => false , CURLOPT_POST => count ( $ data ) , CURLOPT_POSTFIELDS => http_build_query ( $ data ) ) , $ extra ) ; return $ curl -> exec ( ) ; }
Performs HTTP POST request

@param string $url Target URL
@param array $data Data to be sent
@param array $extra Extra options
@return mixed
Performs HTTP POST request