public function simulateCall($pUri, $pMethod = 'get')
    {
        if (($idx = strpos($pUri, '?')) !== false) {
            parse_str(substr($pUri, $idx+1), $_GET);
            $pUri = substr($pUri, 0, $idx);
        }
        $this->getClient()->setUrl($pUri);
        $this->getClient()->setMethod($pMethod);

        return $this->run();
    }
public function simulateCall($pUri, $pMethod = 'get')
    {
        if (($idx = strpos($pUri, '?')) !== false) {
            parse_str(substr($pUri, $idx+1), $_GET);
            $pUri = substr($pUri, 0, $idx);
        }
        $this->getClient()->setUrl($pUri);
        $this->getClient()->setMethod($pMethod);

        return $this->run();
    }
public function simulateCall ( $ pUri , $ pMethod = 'get' ) { if ( ( $ idx = strpos ( $ pUri , '?' ) ) !== false ) { parse_str ( substr ( $ pUri , $ idx + 1 ) , $ _GET ) ; $ pUri = substr ( $ pUri , 0 , $ idx ) ; } $ this -> getClient ( ) -> setUrl ( $ pUri ) ; $ this -> getClient ( ) -> setMethod ( $ pMethod ) ; return $ this -> run ( ) ; }
Simulates a HTTP Call.

@param  string $pUri
@param  string $pMethod The HTTP Method
@return string
Simulates a HTTP Call .