head() public méthode

Will affect cookies, but will not change the base URL.
public head ( string/SimpleUrl $url, hash/SimpleHeadEncoding $parameters = false ) : boolean
$url string/SimpleUrl
$parameters hash/SimpleHeadEncoding
Résultat boolean True if successful.
Exemple #1
0
 function testHeadRequest()
 {
     $browser = new SimpleBrowser();
     $this->assertTrue($browser->head($this->samples() . 'request_methods.php'));
     $this->assertEqual($browser->getResponseCode(), 202);
 }