getResponse() public method

Get the full cURL response
public getResponse ( ) : string
return string
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());
 }