3 ms·
HTTP server following the spec can omit the body from a GET request.
by deniska 9y ago
HTTP server following the spec can omit the body from a GET request.
- hamilyon2 9y agoI'd love to see a document defining this. I could not find such to the date.
- IanCal 9y agoI'm not too up on which documents here are current but at least: > A payload within a GET request message has no defined semantics; > sending a payload body on a GET request might cause some existing > implementations to reject the request. https://tools.ietf.org/html/rfc7231#section-4.3.1 https://tools.ietf.org/html/rfc7231#section-4.3.1
- jwilk 9y agoRFC 2616 §4.3 (https://tools.ietf.org/html/rfc2616#section-4.3 https://tools.ietf.org/html/rfc2616#section-4.3): if the request method does not include defined semantics for an entity-body, then the message-body SHOULD be ignored when handling the request. Now, RFC 2616 is obsolete, and I couldn't find such explicit wording in the superseding RFC 7231. But §4.3.1 (https://tools.ietf.org/html/rfc7231#section-4.3.1 https://tools.ietf.org/html/rfc7231#section-4.3.1) says: A payload within a GET request message has no defined semantics; sending a payload body on a GET request might cause some existing implementations to reject the request.