isPost() public method

Check if cURL is set to POST
public isPost ( ) : boolean
return boolean
Beispiel #1
0
 public function testSetPost()
 {
     $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true));
     $c->setPost(true);
     $this->assertTrue($c->isPost());
 }