public function info($url)
    {
        $url = 'http://' . $this->ip . '/' . ltrim($url, '/');
        $options = [
            CURLOPT_URL            => $url,
            CURLOPT_PORT           => $this->port,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_VERBOSE        => WS::config()->get('debug', false)
        ];

        $ch = curl_init();
        curl_setopt_array($ch, $options);
        $response = curl_exec($ch);

        return $this->formatResponse($response);
    }
public function info($url)
    {
        $url = 'http://' . $this->ip . '/' . ltrim($url, '/');
        $options = [
            CURLOPT_URL            => $url,
            CURLOPT_PORT           => $this->port,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_VERBOSE        => WS::config()->get('debug', false)
        ];

        $ch = curl_init();
        curl_setopt_array($ch, $options);
        $response = curl_exec($ch);

        return $this->formatResponse($response);
    }
public function info ( $ url ) { $ url = 'http://' . $ this -> ip . '/' . ltrim ( $ url , '/' ) ; $ options = [ CURLOPT_URL => $ url , CURLOPT_PORT => $ this -> port , CURLOPT_RETURNTRANSFER => true , CURLOPT_VERBOSE => WS :: config ( ) -> get ( 'debug' , false ) ] ; $ ch = curl_init ( ) ; curl_setopt_array ( $ ch , $ options ) ; $ response = curl_exec ( $ ch ) ; return $ this -> formatResponse ( $ response ) ; }
Fetches device information

@param $url string resource url (Ex: setup.xml)

@return array|string
Fetches device information