컨텐츠가 브라우저에서 동작해야하는 방식을 명시
As a response header for the main body
# 웹 페이지에 표시
Content-Disposition: inline;
# 파일 다운로드
Content-Disposition: attachment;
# 파일 명 지정
Content-Disposition: attachment; filename="filename.txt"
Shell
복사
As a response header for a multipart body
Content-Dispositon: form-data
# name: html 필드에서 사용한 이름
Content-Dispositon: form-data; name="name";
# filename: 해당 파일의 원래 이름
Content-Dispositon: form-data; name="name"; filename="filename.txt"
# 인코딩 RFC 5987이 사용됨
Content-Dispositon: form-data; name="name"; filename*="filename.txt"
Shell
복사