HTTP headers / response header
Content-Disposition
Content-Disposition: attachment; filename="report.pdf"
What it does
Whether the body displays inline or downloads as an attachment, with the suggested filename.
The gotcha
Non-ASCII filenames need the filename*=UTF-8''… RFC 5987 form; bare UTF-8 in filename breaks across browsers.
Debugging headers on a phone
The fastest way to see what Content-Disposition is actually doing is to send the request and read both sides raw — ReqPad shows auto-generated and custom headers for every request, on all six protocols, with history. Related references: status codes · WWW-Authenticate · Content-Encoding · Transfer-Encoding · ETag · Last-Modified · Expires
Inspect Content-Disposition on a live request.
Build the request, send it, read raw headers and timing — from your iPhone. Free to start.