public function get($url, callable $callback, $additionalData = null, $options = [])
    {

        $defaultOptions = [
            CURLOPT_FOLLOWLOCATION => true,
            CURLOPT_USERAGENT => "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION,
        ];

        $options = $options + $defaultOptions;
        $additionalData['callback'] = $callback;

        $this->call($url, [$this, 'process'], $additionalData, $options);
    }
public function get($url, callable $callback, $additionalData = null, $options = [])
    {

        $defaultOptions = [
            CURLOPT_FOLLOWLOCATION => true,
            CURLOPT_USERAGENT => "eXpansionPluginPack v ".AbstractApplication::EXPANSION_VERSION,
        ];

        $options = $options + $defaultOptions;
        $additionalData['callback'] = $callback;

        $this->call($url, [$this, 'process'], $additionalData, $options);
    }
public function get ( $ url , callable $ callback , $ additionalData = null , $ options = [ ] ) { $ defaultOptions = [ CURLOPT_FOLLOWLOCATION => true , CURLOPT_USERAGENT => "eXpansionPluginPack v " . AbstractApplication :: EXPANSION_VERSION , ] ; $ options = $ options + $ defaultOptions ; $ additionalData [ 'callback' ] = $ callback ; $ this -> call ( $ url , [ $ this , 'process' ] , $ additionalData , $ options ) ; }
Make a get http query.

@param string $url address
@param callable $callback callback
@param null|mixed $additionalData If you need to pass additional metadata.
You will get this back in the callback.
@param array $options Single dimensional array of curl_setopt key->values
Make a get http query .