setReturnTransfer() 공개 메소드

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