isReturnHeader() public method

Check if cURL is set to return header
public isReturnHeader ( ) : boolean
return boolean
Beispiel #1
0
 public function testSetReturnHeader()
 {
     $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => false));
     $c->setReturnHeader(true);
     $this->assertTrue($c->isReturnHeader());
 }