출처 : http://blog.daum.net/justdoit1978/5261242
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
'작업노트 > etc.' 카테고리의 다른 글
Internet Explorer9(IE9) beta를 써봤는데... (1) | 2010.09.19 |
---|---|
NNTP, Usenet, UUCP 간략한 정의 (0) | 2009.04.20 |
WOA - Web Oriented Architecture 관련 글 (0) | 2009.03.11 |
[펌] 2년차 개발자가 알아야 할 기본 지식 (0) | 2009.01.15 |
파이어폭스(firefox)에서의 새로고침 (1) | 2008.12.26 |
<s:if test="%{status.equals('1')}" ></s:if>
는 안된다.
<s:if test='%{status.equals("1")}' ></s:if>
는 된다.
따옴표 주의..;
'작업노트 > Framework' 카테고리의 다른 글
[Struts2] radio 태그에서 선택값 유지시키기 (0) | 2009.07.17 |
---|---|
[Spring] org.springframework.scheduling.quartz.CronTriggerBean (0) | 2008.11.05 |
[Spring] BeanFactory와 ApplicationContext (0) | 2008.01.23 |
[Spring] AOP(Aspect Oriented Programming), 관점지향 프로그래밍의 이해 (0) | 2008.01.14 |
[Struts] Action 에서 포워딩 시 parameter 넘기는 법 (0) | 2008.01.14 |
'작업노트 > JAVA' 카테고리의 다른 글
자바의 가비지 콜렉터(Gavage Collector) (0) | 2010.07.27 |
---|---|
CSV파일 (0) | 2009.03.02 |
자바 5 에서의 반복자와 컬렉션(for/in 반복문) (0) | 2008.02.28 |
Java API Map (0) | 2008.01.05 |
JVM 메모리구조와 스택 - 참조 ^^ (0) | 2007.11.19 |