Using PUT method in HTML form

后端 未结 7 2045
情话喂你
情话喂你 2020-11-22 11:30

Can I use a PUT method in an HTML form to send data from the form to a server?

7条回答
  •  死守一世寂寞
    2020-11-22 12:00

    Unfortunately, modern browsers do not provide native support for HTTP PUT requests. To work around this limitation, ensure your HTML form’s method attribute is “post”, then add a method override parameter to your HTML form like this:

    
    

    To test your requests you can use "Postman" a google chrome extension

提交回复
热议问题