head() 공개 메소드

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
리턴 boolean True if successful.
예제 #1
0
 function testHeadRequest()
 {
     $browser = new SimpleBrowser();
     $this->assertTrue($browser->head($this->samples() . 'request_methods.php'));
     $this->assertEqual($browser->getResponseCode(), 202);
 }