Pop\Curl\Curl::getResponse PHP Method

getResponse() public method

Get the full cURL response
public getResponse ( ) : string
return string
    public function getResponse()
    {
        return $this->response;
    }

Usage Example

Beispiel #1
0
 public function testResponse()
 {
     $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true));
     $c->execute();
     $this->assertEquals('1.7.0', $c->getResponse());
 }