Choose normal processing or a save interaction
01Content-Disposition adds response-processing information. attachment suggests a local save interaction; inline keeps normal processing according to the media type.
For the fictional unhandled type example, the shown recipient follows SHOULD and treats it like attachment. It still applies filename and local safety policy.
Source for this drawing: RFC 6266 · Read RFC section 4.2 ↗
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Terms in this drawing
- HTTP
- Hypertext Transfer Protocol, used to exchange requests and responses.
- User agent (UA)
- Recipient software, such as a browser.
- Media type
- A label such as text/html describing the payload format.
- Advisory filename
- A suggested local name that the recipient must assess under its own permissions and safety policy.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Disposition is a processing instruction, not a change to the payload bytes.
- Disposition types are matched case-insensitively. attachment indicates that the recipient should prompt to save locally rather than process normally; inline implies default processing.
- inline can still supply a filename for a later save. The filename is advisory; its presence is not an automatic file write.
- Unknown or unhandled disposition types SHOULD be handled like attachment. This does not authorize execution or an overwrite, and exact browser UI is not specified.
Three independent response examples, not three responses in one transaction. The first two adapt RFC6266§5. A browser is one possible user agent (UA), meaning recipient software. Content-Type describes media type; Content-Disposition adds handling information. This guide covers HTTP response headers, not multipart body-part headers.
Read the RFC section ↗