On Sun, Sep 20, 2020 at 8:10 AM burak serdar <bser...@computer.org> wrote:
> A GET request does not have a body. > > Murky waters ahead. RFC 2616 explicitly states that a supplied body SHOULD be forwarded by the server on any request type. This has led some people to use bodies on GET requests; ElasticSearch I'm looking at you. However, the newer RFC 7231 explicitly states that sending a body on a GET has no determined semantics and that "sound" clients ought to reject such bodies. But since RFC 2616 existed at some point, you might still find certain APIs which do expect GET requests with bodies, however wrong that may seem. Getting rid of mistakes is really hard once they're been used in anger. And HTTP is riddled with design mistakes which shouldn't have been put in, in hindsight. Hopefully the new section of HTTP RFCs mean we can clean up over time as we proceed. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGrdgiVfaVwmX5P%3DNd-ZPOcFOZP-XoETwAy5%2BBTVBzsRUi1F3A%40mail.gmail.com.