Member-only story

Why POST with a Body for GET Is Bad Practice in REST

Stick to GET for retrieval and reserve POST for actions that create or process data

Sivaram Rasathurai
4 min readJan 4, 2025

→ If you are not a medium member, read it here.
→ You can view my system design library here.
→ View my personal highly quality content java articles library here.

Lets Jump into the Blog..

Photo by Tommaso Pecchioli on Unsplash

The HTTP GET method is typically used for retrieving data, and many developers assume it doesn’t support a body. But the truth is, GET requests can include a body. According to the standard (RFC 7231 §4.3.1), GET requests can have a body, but the body has “no defined semantics.”

Is it a good idea to use GET with a body? → depends on your use case.

When GET with a Body Works

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (11)

What are your thoughts?