httprestrequesthttp-methodpayload

Payloads of HTTP Request Methods


The Wikipedia entry on HTTP lists the following HTTP request methods:

I'm interested in knowing (specifically regarding the first five methods):

I appreciate all input, if you could share some (preferably light) reading that would be great too!


Solution

  • RFC 7231, HTTP 1.1 Semantics and Content, is the most up-to-date and authoritative source on the semantics of the HTTP methods. This spec says that there are no defined meaning for a payload that may be included in a GET, HEAD, OPTIONS, or CONNECT message. Section 4.3.8 says that the client must not send a body for a TRACE request. So, only TRACE cannot have a payload, but GET, HEAD, OPTIONS, and CONNECT probably won't and the server isn't expected to know how to handle it if the client sends one (meaning it can ignore it).

    If you believe anything is ambiguous, then there is a mailing list where you can voice your concerns.