Content-Disposition

Whether to display the body inline or download it, and the file name.

Response header (sent by servers) content

How it works

attachment triggers a download. Always sanitize file names taken from user input.

Example

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

See it live: send any request in Endpoint Client and open the Headers tab, where every response header is explained. Specification: RFC 6266.

Related headers