sitelink1 | http://hbesthee.tistory.com/45 |
---|---|
sitelink2 | http://www.iana.org/assignments/media-types/ |
sitelink3 | |
sitelink4 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
ASP | <% Response.ContentType = "text/html" %> |
JSP | <%@ page contentType="text/html" %> |
PHP | <?PHP header("Content-Type:text/html"); ?> |
Perl | print "Content-type: text/htmlnn"; |
Content-Type 의 종류.
1) Multipart Related MIME 타입
- Content-Type: Multipart/related <-- 기본형태
- Content-Type: Application/X-FixedRecord
2) XML Media의 타입
- Content-Type: text/xml
- Content-Type: Application/xml
- Content-Type: Application/xml-external-parsed-entity
- Content-Type: Application/xml-dtd
- Content-Type: Application/mathtml+xml
- Content-Type: Application/xslt+xml
3) Application의 타입
- Content-Type: Application/EDI-X12 <-- Defined in RFC 1767
- Content-Type: Application/EDIFACT <-- Defined in RFC 1767
- Content-Type: Application/javascript <-- Defined in RFC 4329
- Content-Type: Application/octet-stream : <-- 디폴트 미디어 타입은 운영체제 종종 실행파일, 다운로드를 의미
- Content-Type: Application/ogg <-- Defined in RFC 3534
- Content-Type: Application/x-shockwave-flash <-- Adobe Flash files
- Content-Type: Application/json <-- JavaScript Object Notation JSON; Defined in RFC 4627
- Content-Type: Application/x-www-form-urlencode <-- HTML Form 형태
* x-www-form-urlencode와 multipart/form-data은 둘다 폼 형태이지만 x-www-form-urlencode은 대용량 바이너리 테이터를 전송하기에 비능률적이기 때문에 대부분 첨부파일은 multipart/form-data를 사용하게 된다.
4) 오디오 타입
- Content-Type: audio/mpeg <-- MP3 or other MPEG audio
- Content-Type: audio/x-ms-wma <-- Windows Media Audio;
- Content-Type: audio/vnd.rn-realaudio <-- RealAudio; 등등
5) Multipart 타입
- Content-Type: multipart/mixed: MIME E-mail;
- Content-Type: multipart/alternative: MIME E-mail;
- Content-Type: multipart/related: MIME E-mail <-- Defined in RFC 2387 and used by MHTML(HTML mail)
- Content-Type: multipart/formed-data <-- 파일 첨부
6) TEXT 타입
- Content-Type: text/css
- Content-Type: text/html
- Content-Type: text/javascript
- Content-Type: text/plain
- Content-Type: text/xml
좀더 다양한 포맷에 대해서는 아래의 URL을 참고하기 바랍니다.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
137 | 라이노 (Rhino) 관련 링크 모음 | 황제낙엽 | 2008.07.21 | 74 |
136 | |= 비트 OR 대입 연산자 (복합대입연산자) | 황제낙엽 | 2017.03.15 | 73 |
135 | JScript Memory Leaks | 황제낙엽 | 2011.11.28 | 69 |
» | HTTP Content-Type 정리 | 황제낙엽 | 2013.09.30 | 68 |
133 | 자바스크립트 숫자형 체크 함수 (isFinite() 함수 와 isNaN() 함수) | 황제낙엽 | 2011.12.13 | 67 |
132 | innerHTML | 황제낙엽 | 2005.12.19 | 67 |
131 | 아이디 생성 조건 검사 자바스크립트 모듈 | 황제낙엽 | 2004.11.18 | 67 |
130 | SpiderMonkey와 Tamarin | 황제낙엽 | 2008.07.14 | 66 |
129 | 상속과 Super 로의 접근 | 황제낙엽 | 2012.09.18 | 64 |
128 | 콜백지옥과 비동기제어 | 황제낙엽 | 2021.02.18 | 63 |
127 | XMLHttpRequest.setRequestHeader | 황제낙엽 | 2013.09.30 | 62 |
126 | 소숫점을 포함한 반올림 | 황제낙엽 | 2008.12.11 | 62 |
125 | Understanding delete | 황제낙엽 | 2011.11.28 | 61 |
124 | Iframe 내의 페이지 접근방법 | 황제낙엽 | 2009.11.12 | 59 |
123 | XMLHttpRequest 제대로 활용하기 | 황제낙엽 | 2017.08.01 | 58 |
122 | Javascript 내장객체 Array (배열) | 황제낙엽 | 2008.10.13 | 57 |
121 | charcode 32와 160 차이 (javascript char 160 to 32) | 황제낙엽 | 2019.05.11 | 55 |
120 | 체인 생성자(생성자 체인), 프로토타입 체인 그리고 생성자 재지정 | 황제낙엽 | 2009.08.12 | 55 |
119 | 다양한 WYSIWYG 에디터 | 황제낙엽 | 2011.11.13 | 54 |
118 | State of ECMAScript 4 ('07 12) | 황제낙엽 | 2008.07.14 | 54 |