Example #1
0
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('body', false);
     //apply MDTM action on the file, if not valid status is 550 the simplest way for HEAD
     $this->addOption('commands.request', ['MDTM ' . $this->getUrl()->path()]);
 }
Example #2
0
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('body', false);
     $this->addOption('commands.post', ['DELE ' . $this->getUrl()->path()]);
 }
Example #3
0
 protected function prepare()
 {
     parent::prepare();
     $this->addOption('url', $this->getUrl());
 }