Content-Disposition

Whether the browser should show the body or download it, and the file name to save it as.

Explained

Examples

Example

Content-Disposition: attachment; filename="report.pdf"

Watch out

For file names with non-ASCII characters, add filename* with UTF-8 encoding: filename*=UTF-8''r%C3%A9sum%C3%A9.pdf.

Defined in RFC 6266.

Other common headers