Check if cURL is set to return header
public isReturnHeader ( ) : boolean | ||
리턴 | boolean |
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()); }