HTML forms only support
GET
and
POST
as HTTP request methods. A workaround for this is to tunnel other methods through
POST
by using a
hidden form field
which is read by the server and the request dispatched accordingly
<input type="hidden" name="_method" value="DELETE">
However,
GET
,
POST
,
PUT
and
DELETE
are supported by the implementations of XMLHttpRequest (i.e. AJAX calls) in all the major web browsers (IE, Firefox, Safari, Chrome, Opera)
by Valeri Tandilashvili
4 years ago
HTML
1
Pro tip: use ```triple backticks around text``` to write in code fences