<?php
$method = $_SERVER['REQUEST_METHOD'];
switch ($method) {case 'GET'://Here Handle GET Requestecho 'You are using '.$method.' Method';break;case 'POST'://Here Handle POST Requestecho 'You are using '.$method.' Method';break;case 'PUT'://Here Handle PUT Requestecho 'You are using '.$method.' Method';break;case 'PATCH'://Here Handle PATCH Requestecho 'You are using '.$method.' Method';break;case 'DELETE'://Here Handle DELETE Requestecho 'You are using '.$method.' Method';break;case 'COPY'://Here Handle COPY Requestecho 'You are using '.$method.' Method';break;
case 'OPTIONS'://Here Handle OPTIONS Requestecho 'You are using '.$method.' Method';break;case 'LINK'://Here Handle LINK Requestecho 'You are using '.$method.' Method';break;case 'UNLINK'://Here Handle UNLINK Requestecho 'You are using '.$method.' Method';break;case 'PURGE'://Here Handle PURGE Requestecho 'You are using '.$method.' Method';break;case 'LOCK'://Here Handle LOCK Requestecho 'You are using '.$method.' Method';break;case 'UNLOCK'://Here Handle UNLOCK Requestecho 'You are using '.$method.' Method';break;case 'PROPFIND'://Here Handle PROPFIND Requestecho 'You are using '.$method.' Method';break;case 'VIEW'://Here Handle VIEW Requestecho 'You are using '.$method.' Method';break;Default:echo 'You are using '.$method.' Method';break;}
?>