In HTML forms, only GET and POST
are supported as HTTP request methods in earlier versions of HTML (such as HTML version 4 and XHTML 1). To work around this limitation, one can tunnel other methods through POST by incorporating a hidden form field that is interpreted by the server to dispatch the request accordingly.
On the other hand, modern implementations of XMLHttpRequest (commonly used for AJAX calls) in popular web browsers like IE, Firefox, Safari, Chrome, and Opera do support methods like GET, POST, PUT, and DELETE
.
For more information, check out the discussion on this topic at Are the PUT, DELETE, HEAD, etc methods available in most web browsers?