Is there any reason not to use HTTP PUT and DELETE in a web application?

后端 未结 7 792
深忆病人
深忆病人 2021-01-31 03:04

Looking around, I can\'t name a single web application (not web service) that uses anything besides GET and POST requests. Is there a specific reason for this? Do some browsers

7条回答
  •  醉酒成梦
    2021-01-31 03:27

    I've read that some browsers do not support other HTTP methods properly, though I can't name any specifics.

    Rails, in particular, will pack your forms with a method parameter to explicitly set this even if the browser doesn't support those methods. That seems like a reasonable precaution if you're going to do this.

提交回复
热议问题