setReturnTransfer() public method

Set cURL option to return the transfer
public setReturnTransfer ( boolean $transfer = false ) : Curl
$transfer boolean
return Curl
Beispiel #1
0
 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());
 }