Is a payload allowed for the GET method?
💡 Model Answer
According to the HTTP/1.1 specification, a GET request should not contain a message body. While some servers and frameworks may accept a body, it is not part of the standard and can lead to interoperability issues. The correct way to send data with a GET request is through query parameters appended to the URL. For example, to request a user with ID 123, the URL might be /users?id=123. If you need to send a large payload or complex data, consider using POST or another method designed for bodies.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.
Get Assisting AI — Starts at ₹500