简体   繁体   English

PUT / PATCH / DELETE和HTTP标头的REST API问题

[英]REST API problems with PUT/PATCH/DELETE and HTTP headers

I know, that some web-clients can't use PUT/PATCH/DELETE http methods. 我知道,某些网络客户端无法使用PUT / PATCH / DELETE http方法。 I heard about clients, which uses Flash, and about simple http forms. 我听说过使用Flash的客户端以及简单的http表单。

  1. Have you had such problems? 你有这样的问题吗? With which web-frameworks on client side? 客户端使用哪种网络框架?

  2. Should I expect some problems with custom http headers, which some clients will not be able to send? 我是否应该预期自定义http标头会出现一些问题,有些客户端将无法发送这些问题? (eg X-HTTP-METHOD-Override) (例如X-HTTP-METHOD-Override)

All these three methods are not commonly used and by default 这三种方法都不常用,默认情况下

  • GET 得到

  • POST 开机自检

  • QUERY 查询

    are three methods that are allowed so if you want to use 允许使用三种方法,因此,如果要使用

  • PUT

  • PATCH 补丁

  • DELETE 删除

You will have to configure them in your webserver to allow these methods which depends on framework and server configuration in which your application is running 您将必须在Web服务器中对其进行配置,以允许这些方法取决于您的应用程序在其中运行的框架和服务器配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM