setReturnHeader() public method

Set cURL option to return the header
public setReturnHeader ( boolean $header = false ) : Curl
$header boolean
return Curl
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());
 }