Sending POST data with GET request valid?

前端 未结 2 661
[愿得一人]
[愿得一人] 2020-11-29 11:02

Using Curl for example, I can \"post\" data in a GET request. Is this a valid thing to do? With that I mean:

  • Is it not forbidden by any RFC specification?
2条回答
  •  有刺的猬
    2020-11-29 11:37

    There is a "good reason" use case out there.

    elasticsearch uses entity-body data in GET requests to try to use the GET verb as a read while also allowing a more complicated specification than url alone allows (easily).

提交回复
热议问题