null
null

Reputation: 9134

Is it valid if I use HTTP method POST for fetching data?

What I know that the HTTP method GET is for fetching/searching data and POST is for create/insert data.

But what if there is a case that I want to search data but the parameters (key-value pairs) are so many or big that there is possibility it will go over the query string limit for the GET method.

In this case, if I use POST for searching data, is it valid in the REST or HTTP specification?

Upvotes: 1

Views: 85

Answers (1)

Sanket Tarun Shah
Sanket Tarun Shah

Reputation: 637

Its perfectly valid in the scenarios where you have lot many number of variable parameters.

Upvotes: 1

Related Questions