Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

Content-Disposition

Summary

Used to convey additional information about how to process the response payload.

Overview table

Direction
Response

Features
:

Syntax

content-disposition = "Content-Disposition" ":"
                       disposition-type *( ";" disposition-parm )

disposition-type    = "inline" | "attachment" | disp-ext-type
                    ; case-insensitive
disp-ext-type       = token

disposition-parm    = filename-parm | disp-ext-parm

filename-parm       = "filename" "=" value
                    | "filename*" "=" ext-value

disp-ext-parm       = token "=" value
                    | ext-token "=" ext-value
ext-token           = <the characters in token, followed by "*">

Examples

Content-Disposition: Attachment; filename=example.html

Notes

Content-Disposition as used in HTTP is a subset of the same header defined in MIME

Related specifications

RFC6266: Use of the Content-Disposition Header Field in HTTP
: