isPost() public méthode

Check if cURL is set to POST
public isPost ( ) : boolean
Résultat boolean
Exemple #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());
 }