Path: blob/main/files/en-us/web/http/headers/accept-post/index.md
6537 views
------{{HTTPSidebar}}
The Accept-Post response HTTP header advertises which media types are accepted by the server for HTTP post requests.
Accept-Post in response to any method means that POST is allowed on the requested resource (any document/media format in the header further indicates that the document format is allowed).
For example, a server receiving a POST request with an unsupported media type could reply with {{HTTPStatus("415")}} Unsupported Media Type and an Accept-Post header referencing one or more supported media types.
Note: An IANA registry maintains a complete list of official content encodings.
| Header type | {{Glossary("Response header")}} |
|---|---|
| {{Glossary("Forbidden header name")}} | yes |
Syntax
Note: The
Accept-Postheader specifies a media range in the same way as {{HTTPHeader("Accept")}}, except that it has no notion of preference (i.e., noqarguments). This is becauseAccept-Postis a response header whileAcceptis a request header.
Directives
None.
Examples
Specifications
{{Specifications}}
Browser compatibility
Browser compatibility is not relevant for this header (header is sent by server, and the specification does not define client behavior).
See also
Http method {{HTTPMethod("POST")}}
HTTP Semantic and context {{RFC("7231", "POST", "4.3.3")}}