Set cURL option to return the transfer
public setReturnTransfer ( boolean $transfer = false ) : |
||
$transfer | boolean | |
Résultat |
public function testSetReturnTransfer() { $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => false)); $c->setReturnTransfer(true); $this->assertTrue($c->isReturnTransfer()); }