protected static function getHTTPClientInstance(array $instanceConfig)
    {
        $username = ((isset($instanceConfig['Instance']['user']) === true) ? $instanceConfig['Instance']['user'] : '');
        $password = ((isset($instanceConfig['Instance']['pass']) === true) ? $instanceConfig['Instance']['pass'] : '');

        // Bootstrap the REST client
        $curlClient = new Curl();
        $curlClient->setVerifyPeer(false);
        $restClient = new Browser($curlClient);

        if ($username && $password) {
            $authListener = new BasicAuthListener($username, $password);
            $restClient->addListener($authListener);
        }

        return $restClient;
    }
protected static function getHTTPClientInstance(array $instanceConfig)
    {
        $username = ((isset($instanceConfig['Instance']['user']) === true) ? $instanceConfig['Instance']['user'] : '');
        $password = ((isset($instanceConfig['Instance']['pass']) === true) ? $instanceConfig['Instance']['pass'] : '');

        // Bootstrap the REST client
        $curlClient = new Curl();
        $curlClient->setVerifyPeer(false);
        $restClient = new Browser($curlClient);

        if ($username && $password) {
            $authListener = new BasicAuthListener($username, $password);
            $restClient->addListener($authListener);
        }

        return $restClient;
    }
protected static function getHTTPClientInstance ( array $ instanceConfig ) { $ username = ( ( isset ( $ instanceConfig [ 'Instance' ] [ 'user' ] ) === true ) ? $ instanceConfig [ 'Instance' ] [ 'user' ] : '' ) ; $ password = ( ( isset ( $ instanceConfig [ 'Instance' ] [ 'pass' ] ) === true ) ? $ instanceConfig [ 'Instance' ] [ 'pass' ] : '' ) ; // Bootstrap the REST client $ curlClient = new Curl ( ) ; $ curlClient -> setVerifyPeer ( false ) ; $ restClient = new Browser ( $ curlClient ) ; if ( $ username && $ password ) { $ authListener = new BasicAuthListener ( $ username , $ password ) ; $ restClient -> addListener ( $ authListener ) ; } return $ restClient ; }
Creates the HTTP abstraction object hierarchy.
For this purpose we use an external library called "Buzz".

For $instanceConfig documentation see self::getDataService.

@param array $instanceConfig
@return Browser
Creates the HTTP abstraction object hierarchy . For this purpose we use an external library called Buzz .