delete() 공개 메소드

Sends a DELETE request and fetches the response.
public delete ( string/SimpleUrl $url, hash/SimpleFormEncoding $parameters = false ) : string
$url string/SimpleUrl
$parameters hash/SimpleFormEncoding
리턴 string Content of page or false.
예제 #1
0
 function testDeleteRequest()
 {
     $browser = new SimpleBrowser();
     $browser->delete($this->samples() . 'request_methods.php');
     $this->assertEqual($browser->getResponseCode(), 202);
     $this->assertPattern('/Your delete request was accepted/', $browser->getContent());
 }