What HTTP method do you use to search for data using request body?

Asked

Viewed 18 times

2

Previously, according to RFC2616, which dealt with the HTTP/1.1 specs, it said that the content of a request body should be ignored when the method used was GET. Therefore, the POST was used when we wanted to perform some research and receive this data by sending the filters through the request body.

However, this RFC was replaced in 2014 by the Rfcs 7230-7327, where it removes the restriction that filters should be passed through the URL. Next to this, the POST method has taken on a concept that should be used to create backend entries.

Is my question correct that we use GET, semantically speaking, to query a domain in case we need to send the filters through a request body? If not, send through a POST?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.