Name admin Write date 2008-02-20 Count 445 IP 222.110.63.44
  Subject Content-Type ºÐ¼® Down
Empty

Content-TypeÀº Internt Media ŸÀÔÀÌ´Ù. ±×·¯³ª ¿Ö ¾Ë¾Æ¾ß ÇÏ´Â °¡´Â À¥ ¼­¹ö ·Î±×ÀÇ Content-TypeÀ» º¸°í ¾î¶² ¾îÇø®ÄÉÀ̼ÇÀÌ »ç¿ëµÇ¾î ÀÖ´ÂÁö¸¦ ÆľÇÇÒ ¶§ µµ¿òÀÌ µÈ´Ù. ¶ÇÇÑ À¥ Æ÷·»½Ä ÀÛ¾÷À» ÇÒ ¶§ ½ÇÁ¦ °ø°ÝÂ÷´ÜÀÇ ·ê¼ÂÀÎÁö ¾Æ´Ï¸é Á¤»óÀûÀÎ ¼­ºñ½ºÀÎÁöÀÇ ·êÀÎÁö¸¦ ÆÇ´ÜÇØ¾ß ÇÒ ¶§ ¸¹Àº µµ¿òÀÌ µÉ °ÍÀÌ´Ù. ÃÖ±Ù¿¡´Â À¥ ÀÌ¿ÜÀÇ ¾îÇø®ÄÉÀ̼ǵéÀÌ HTTP+XML ÇüÅ·Π»ç¿ëÀ» ¸¹ÀÌ Çϱ⠶§¹®¿¡ ¿ÀŽ¿©ºÎ¸¦ ÆÇ´ÜÇÒ ¶§ ¸¹Àº µµ¿òÀÌ µÈ´Ù.

1) Multipart Related MIME ŸÀÔ
- Content-Type : Multipart/related(±âº»ÇüÅÂ)
- Content-Type : Application/X-FixedRecord
- Content-Type: Text/x-Okie; charset=iso-8859-1;

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 : Type audio: Audio
- 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:


7) ±âŸ MIMERPC ¿¹Á¦µé
°¡) HTTP with x/www-form-urlencoded ÀϹݿäû
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded
0=example.getStateName&1=10023


[ÀÀ´ä]
HTTP/1.1 200 OK
Content-type: text/plain
New York


³ª) HTTP x/www-form-urlencoded namedArgs getTeam
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded
0=example.getTeam&state=New York&sport=Baseball


[ÀÀ´ä]
HTTP/1.1 200 OK
Content-type: multipart/mixed, boundary=B
--BYankees

--BMets

--B


´Ù) HTTP x/www-form-urlencoded unicode addUser
POST /some/resource HTTP/1.1
Content-type: application/x-www-form-urlencoded
0=example.addUser&fname=Igna%ACio&lname=Sanchez


¶ó) HTTP with multipart/form-data ¿äû
POST /some/resource HTTP/1.1
Content-type: multipart/form-data, boundary=AaB03x
--AaB03x
content-disposition: form-data; name="field1"


Joe Blow


--AaB03x
content-disposition: form-data; name="pics"; filename="file1.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary
...contents of file1.gif...


--AaB03x--

[ÀÀ´ä]
HTTP/1.0 200 OK
Content-type: text/plain
OK


¸¶) Uploading multiple files with unicode

POST /foo HTTP/1.0
Content-type: multipart/form-data, boundary=AaB03x


--AaB03x
content-disposition: form-data; name="field1"
Joe Blow


--AaB03x <-- ¿©·¯°³ÀÇ ÆÄÀÏÀ» ÷ºÎÇÒ ¶§
content-disposition: form-data; name="pics"
Content-type: multipart/mixed, boundary=BbC04y

--BbC04y <-- ù¹ø° ÷ºÎÆÄÀÏÀº ÅؽºÆ®
Content-disposition: attachment; filename="file1.txt"
Content-Type: text/plain; charset=UNICODE-1-1
Content-Transfer-Encoding: binary
... contents of some unicode file.txt ...


--BbC04y <-- µÎ¹ø° ÷ºÎÆÄÀÏÀº À̹ÌÁö
Content-disposition: attachment; filename="file2.gif"
Content-type: image/gifContent-Transfer-Encoding: binary
...contents of file2.gif...

--BbC04y


----AaB03x--


¹Ù) XML and EMail ¿äû
HTP Request
POST /x/foo/bar HTTP/1.0
reply-to-url: callback@domain.com
message-id: abc123
aynch: required0=getAuthorization&1="bobjones"


[ÀÀ´ä]
HTTP/1.0 200 OK
delivered-to: callback@domain.com
Content-length: 0
Mail/SMTP Response
To: callback@domain.comFrom: mimeRPC@otherplace.com
in-reply-to: abc123
content-type: text/xml
<?xml version="1.0"?><this><is /><xml /></this>

¶ÇÇÑ °£È¤ Content-Type¿Ü¿¡ x-vermeer-content-type ÇüÅ°¡ Ãß°¡·Î ³ª¿À´Â °æ¿ì°¡ Àִµ¥ ÀÌ°ÍÀº RPC Åë½ÅÀ» »ç¿ëÇÏ´Â °ÍÀ» ÀǹÌÇϸç, ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® Á¦Ç°Áß¿¡ SharePoint ¼­¹ö Á¦Ç°±º°ú ÇÁ·ÐÆ®ÆäÀÌÁö°¡ ÀÌ x-vermeer-Content-Type¸¦ »ç¿ëÇϱ⠶§¹®¿¡ ±â¾ïÇØ µÎ±â ¹Ù¶õ´Ù.


Comment
Content   

      
: vi »ç¿ë¹ý
: Çì´õÆÄÀÏ¿¡ phpÁ¤º¸ ...