files/en-us/web/http/reference/headers/accept-post/index.md
The HTTP Accept-Post {{Glossary("response header")}} advertises which media types are accepted by the server in a {{HTTPMethod("POST")}} request.
For example, a server receiving a POST request with an unsupported media type could reply with {{HTTPStatus("415", "415 Unsupported Media Type")}} and an Accept-Post header referencing one or more supported media types.
The header should appear in {{HTTPMethod("OPTIONS")}} requests to a resource that supports the POST method.
An Accept-Post header in a response to any request method implicitly means that a POST is allowed on the target resource in the request.
<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>{{Glossary("Response header")}}</td> </tr> </tbody> </table>[!NOTE] IANA maintains a list of official content encodings. The
bzipandbzip2encodings are non-standard but may be used in some cases, particularly for legacy support.
Accept-Post: <media-type>/<subtype>
Accept-Post: <media-type>/*
Accept-Post: */*
// Comma-separated list of media types
Accept-Post: <media-type>/<subtype>, <media-type>/<subtype>
[!NOTE] The
Accept-Postheader specifies a media range in the same way as {{HTTPHeader("Accept")}}, except that it has no notion of preference viaq({{Glossary("quality values")}}) arguments. This is becauseAccept-Postis a response header whileAcceptis a request header.
<media-type>/<subtype>
text/html.<media-type>/*
image/* corresponds to image/png, image/svg, image/gif, and other image types.*/*
Accept-Post: application/json, text/plain
Accept-Post: image/webp
Accept-Post: */*
{{Specifications}}
Browser compatibility is not relevant for this header. The header is sent by the server and the specification does not define client behavior.