Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

前端 未结 7 1200
夕颜
夕颜 2020-11-21 06:46

I\'ve seen a couple questions around here like How to debug RESTful services, which mentions:

Unfortunately that same browser won\'t allow me to test

7条回答
  •  野性不改
    2020-11-21 07:23

    HTML forms support GET and POST. (HTML5 at one point added PUT/DELETE, but those were dropped.)

    XMLHttpRequest supports every method, including CHICKEN, though some method names are matched against case-insensitively (methods are case-sensitive per HTTP) and some method names are not supported at all for security reasons (e.g. CONNECT).

    Browsers are slowly converging on the rules specified by XMLHttpRequest, but as the other comment pointed out there are still some differences.

提交回复
热议问题