简体   繁体   中英

REST API problems with PUT/PATCH/DELETE and HTTP headers

I know, that some web-clients can't use PUT/PATCH/DELETE http methods. I heard about clients, which uses Flash, and about simple http forms.

  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? (eg 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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