HTTP1.0-1.1 Protocol Massage & Header ±¸¼º¿ä¼Ò
ºÐ ·ù |
Massages |
Header |
¼³ ¸í |
Áö ¿ø ¹ö Àü |
»ý·«¿©ºÎ |
|
HTTP1.0 |
HTTP1.1 |
|||||
»ó¿ëHeader |
General-Header |
Date |
ÇöÀç½Ã°£ ex)Date: Tue, 15 Nov 1994 08:12:31 GMT |
¡Û |
¡Û |
|
|
|
Pragma |
ÄɽÃÁ¦¾î ex)Pragma: no-cache |
¡Û |
¡¿ |
|
|
|
Cache-Control |
Äɽà ¿©ºÎ¡¤¾÷µ¥ÀÌÆ®½Ã°£¡¤³»¿ë¡¤Áö¿òµî |
¡¿ |
¡Û |
|
|
|
Connection |
¿¬°á²÷±â-http1.1Àº ¿¬°áÀ» Áö¼Ó ex)Connection: close |
¡¿ |
¡Û |
|
|
|
Transfer-Encoding |
[entity-body]ÀÇ ¾ÐÃà¹æ½Ä |
¡¿ |
¡Û |
|
|
|
Upgrade |
ÇÁ·ÎÅäÄÝ º¯°æ½Ã ex)Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11 |
¡¿ |
¡Û |
|
|
|
Via |
Áß°è¼¹ö(ÇÁ·Ï½Ã,°ÔÀÌÆ®¿þÀ̵î)ÀÇ Áö¿øÇÁ·ÎÅäÀ̸§¡¤¹öÀü¡¤È£½ºÆ®¸í |
¡¿ |
¡Û |
|
|
Entity-Header |
Allow |
»ç¿ëÀÌ Çã¿ëµÇ´Â ¸Þ¼Òµå¿°Å ex)Allow: GET ,HEAD ,OPTIONS ,TRACE |
¡Û |
¡Û |
|
|
|
Content-Encoding |
[entity-body]ÀÇ ¸®¼Ò½º ¾ÐÃà¹æ½Ä(gzip, compress, deflate..) ex)Content-Encoding: gzip |
¡Û |
¡Û |
|
|
|
Content-Length |
[entity-body]ÀÇ ¸®¼Ò½º Å©±â(¹ÙÀÌÆ® ´ÜÀ§) ex)Content-Length: 3495 |
¡Û |
¡Û |
¡¿¡Ø2 |
|
|
Content-Type |
[entity-body]ÀÇ ¹Ìµð¾î ŸÀÔ ex)Content-Type: text/html |
¡Û |
¡Û |
|
|
|
expires |
ÀÚ¿øÀÇ ¸¸±â ³¯Â¥(Äɽõ¥ÀÌÅÍ ¾÷µ¥ÀÌÆ®¿ä±¸) ex)Expires: Thu, 01 Dec 1994 16:00:00 GMT |
¡Û |
¡Û |
|
|
|
Last-Modified |
°¡Àå ÃÖ±Ù¿¡ ¼öÁ¤µÈ ³¯Â¥ ex)Last-Modified: Thu, 01 Dec 1994 16:00:00 GMT |
¡Û |
¡Û |
|
|
|
Content-Base |
[entity-body]¸®¼Ò½º base-URL ex)Content-Base: http://www.isoft.co.kr/ |
¡¿ |
¡Û |
|
|
|
Content-Language |
[entity-body]¾ð¾îÁ¤º¸ ex)Content-Language: da |
¡¿ |
¡Û |
|
|
|
Content-Location |
[entity-body]ÀÇ URL |
¡¿ |
¡Û |
¡¿¡Ø3 |
|
|
Content-MD5 |
Àü¼Û½Ã [entity-body]ÀÇ ¿À·ù¹ß»ý°Ë»ç-[entity-body]ÀϺθ¦ ¿ä¾à¡Ø1(MD5 RFC1864) |
¡¿ |
¡Û |
|
|
|
Content-Range |
[entity-body]ÀϺκРÀü¼Û½ÃÀÇ ÇØ´çºÎºÐ(À̾î¹Þ±âµî¿¡ »ç¿ë) ex)Content-Range: bytes 4150-5140/5140 |
¡¿ |
¡Û |
|
|
|
ETag |
Äɽà ¾÷µ¥ÀÌÆ® Á¤º¸¸¦ À§ÇÑ ÀÓÀÇÀÇ ½Äº°¼ýÀÚ¡Ø4 ex)ETag: "0-556-343b9e36" |
¡¿ |
¡Û |
|
¡Ø1(MD5 RFC1864)-vase64·Î ÀÎÄÚµùµÈ ³»¿ëÀÌ Çì´õ°ªÀ¸·Î Á¸ÀçÇÑ´Ù.
¡Ø2 requst-line ÀÇ method°¡ post ÀÎ °æ¿ì »ý·« ºÒ°¡
¡Ø3Content-Base°¡ ¾ø´Â °æ¿ì »ý·«ÀÌ ºÒ°¡.
¡Ø4Entity-Tag ¶ó°í ºÒ¸®¸ç, If-Match¡¤If-None-Match¡¤If-Range¿¡¼ »ç¿ë
ºÐ ·ù |
Massages |
Header |
¼³ ¸í |
Áö ¿ø ¹ö Àü |
»ý·«¿©ºÎ |
|
HTTP1.0 |
HTTP1.1 |
|||||
Request |
Requst-Line |
Method¡Ø5 |
GET,POST,HEAD |
¡Û |
¡Û |
|
OPTIONS,PUT,DELETE,TRACE |
¡¿ |
¡Û |
|
|||
|
|
Request-URI |
¿äû µ¥ÀÌÅÍÀÇ Àý´ë ÁÖ¼Ò³ª »ó´ëÁÖ¼Ò. ex)http://www.isoft.co.kt/index.html or /test/helloworld.html |
¡Û |
¡Û |
|
|
|
HTTP-Version |
HTTP" + 0.9¡1.1(ÇØ´ç ÇÁ·ÎÅäÄÝ) |
¡Û |
¡Û |
|
|
Request-Header |
Authorization |
»ç¿ëÀÚ ÀÎÁõÁ¤º¸ - »ç¿ëÀÚ ID¿Í ¾ÏÈ£°¡ ÇÔ²² Base64·Î ÀÎÄÚµù¡Ø6 ex)Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== |
¡Û |
¡Û |
|
|
|
From |
ÀÚ¿øÀÇ »ý¼ºÀÚ³ª À¥¸¶½ºÅÍÀÇ ÀüÀÚ¿ìÆí ÁÖ¼Ò ex)From: psycho@isoft.co.kr |
¡Û |
¡Û |
|
|
|
If-Modified-Since |
GET »ç¿ë½Ã-Çì´õ Çʵ忡 ÁöÁ¤µÈ ³¯Â¥º¸´Ù ³ªÁß ÀÚ¿ø¸¸ Àü´Þ(ÄɽÃÀÏÀÚ°Ë»ö) ex)If-Modified-Since: Tue, 15 Nov 1994 12:45:26 GMT |
¡Û |
¡Û |
|
|
|
Refer |
ÇÑÆäÀÌÁö¿¡¼ ´Ù¸¥ÆäÀÌÁö¸¦ ¿äûÇÒ ¶§ (¸µÅ©½Ã) ÀÌÀü ÆäÀÌÁö ÁÖ¼ÒÁ¦°ø ex)Referer: http://www.w3.org/hypertext/DataSources/Overview.html |
¡Û |
¡Û |
|
|
|
User Agenter |
browser Á¤º¸ ex)User-Agent: MyWebBroswer/0.5 |
¡Û |
¡Û |
|
|
|
Accept |
Ŭ¶óÀ̾ðÆ®ÀÇ »ç¿ë°¡´É ¹Ìµð¾îŸÀÔ ex)Accept: text/*, text/html, text/html;level=1, */* |
¡¿ |
¡Û |
|
|
(Content Neogotation) |
Accept-Charset |
Ŭ¶óÀÌ¾ðÆ®¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Â ¹®ÀÚ ÁýÇÕ(»ý·«½Ã ¸ðµÎÀνÄ) ex)Accepr: iso-8859-1, unicode-1-1 |
¡¿ |
¡Û |
|
|
(Content Neogotation) |
Accept-Encoding |
Ŭ¶óÀÌ¾ðÆ®¿¡¼ Á¦°øµÇ´Â ÀÎÄÚµù ¹æ¹ý(¾ÐÃà) ex)Accept-Encoding: compress, gzip |
¡¿ |
¡Û |
|
|
|
Accept-Language |
Ŭ¶óÀÌ¾ðÆ®°¡ ÀνÄÇÒ ¼ö ÀÖ´Â ¾ð¾î(¿ì¼±¼øÀ§°¡´É) ex)Accept-Language: da, en-gb;q=0.8, en;q=0.7(µ¶ÀϾî, ¿µ±¹¿µ¾î, ¿µ¾î) |
¡¿ |
¡Û |
|
|
|
Host |
¼¹öÀÇ ±âº»URL(ÇϳªÀÇ IPÁÖ¼Ò¿¡ ¿©·¯°³ÀÇ À̸§À» °¡Áø ¸ÖƼ ¼¹ö¸¦ Áö¿ø) ex)www.w3.org |
¡¿ |
¡Û |
¡¿ |
|
|
If-Match |
ETag°ª ºñ±³-Method¼öÇà-(PUT ¸Þ¼Òµå:ÇØ´çheader¹«½Ã),´Ù¸£¸é 402¿¡·¯¹ß»ý ex)If-Match: "0-556-343b9e36" |
¡¿ |
¡Û |
|
|
|
If-None-Match |
ETag°ª ºñ±³, ´Ù¸¦¶§-Method¼öÇà-(If-Match¿Í ¹Ý´ë),°°À» ¶§ ¿¡·¯ ex)If-None-Match: "0-556-343b9e36","0-1e4-34367116" |
¡¿ |
¡Û |
|
|
|
If-Range |
Ŭ¶óÀÌ¾ðÆ® Ä³½Ã Á¤º¸¸¦ ¾÷µ¥ÀÌÆ® Á¤º¸ (ETag or Date ºñ±³) |
¡¿ |
¡Û |
|
|
|
If-Unmodified-Since |
Çì´õ°ª¿¡ ÁöÁ¤µÈ ³¯ÀڷκÎÅÍ ¼öÁ¤ÀÌ ¾ø´Â°æ¿ì Method¸¦ ¼öÇà ex) If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT |
¡¿ |
¡Û |
|
|
|
Max-Forwards |
ÀÌ ¸Þ½ÃÁö°¡ °ÅÃÄ °¥¼ö ÀÖ´Â ÃÖ´ë ProxyÀÇ °³¼ö¸¦ ÁöÁ¤ ex)Max-Forwards: 7 |
¡¿ |
¡Û |
|
|
|
Proxy-Authorization |
ºñ°ø°³ ÇÁ·Ï½Ã ¼¹ö À¯ÀúÀÎÁõÀ» À§ÇÑ ÄÚµå |
¡¿ |
¡Û |
|
|
|
Range |
ÀÚ¿øÀÇ ÀϺκи¸ ¹ÞÀ»¶§(À̾î¹Þ±â±â´É) ¹ÞÀ»¹üÀ§ ÁöÁ¤ ex)bytes=0-499 : <- 0~499byte¸¦ ¾ò°íÀÚ ÇÒ ¶§. |
¡¿ |
¡Û |
|
¡Ø5°¢ ¸Þ¼Òµå¿¡ ´ëÇÑ ¼³¸í : ¡¤GET - ¿äûÇÑ URL ÀڷḦ Àü¼Û (½ÇÇàÈÀÏÀÏ °æ¿ì ½ÇÇà °á°ú¸¦ Àü¼Û)
¡¤POST - [Entity-body]¸¦ ÇØ´ç ¼¹ö¿¡ ¼ö¼Û(CGIȰ¿ë. ´Ü, Entity-body°¡ ¾ø°Å³ª, Content-Length°¡ ¾øÀ¸¸é ¿¡·¯..(400¿¡·¯))
¡¤Head - ÀÀ´ä¸Þ½ÃÁö´Â [Entity-body]¾øÀÌ Àü¼ÛµÊ
¡¤OPTIONS-ÀÚ¿ø°ú °ü·ÃµÈ ÇÊ¿ä »çÇ× °áÁ¤ ¹× ¼¹ö ±â´É°Ë»ö
¡¤PUT -¸Þ½ÃÁö ¹Ùµð ºÎºÐÀÇ µ¥ÀÌÅ͸¦ ÁöÁ¤ÇÑ ¿ä±¸ URIÀ̸§À¸·Î ÀúÀåÇÑ´Ù.(ftpÀÇ PUT°ú µ¿ÀÏ)
¡¤DELETE - ¼¹ö¿¡¼ ¿ä±¸ URI¿¡ ÁöÁ¤µÈ ÀÚ¿øÀ» Áö¿ï ¼ö ÀÖ´Ù.
¡¤TRACE - ¿ä±¸ ¸Þ½ÃÁö°¡ ÃÖÁ¾ ¼ö½Åó¿¡ µµ´Þ °æ·Î¸¦ ±â·ÏÇÏ´Â ·çÇÁ¹é(loop back) °Ë»ç¿ë
(Ŭ¶óÀÌ¾ðÆ® ÀÇ ¿ä±¸ ¸Þ½ÃÁö°¡ °ÅÃİ¡´Â ÇÁ·Ï½Ã³ª °ÔÀÌÆ®¿þÀÌÀÇ Áß°£ °æ·ÎºÎÅÍ ÃÖÁ¾ ¼ö½Å ¼¹ö±îÁöÀÇ °æ·Î¸¦ ¾Ë¾Æ³¾ ¶§ »ç¿ë,
Max-Forwards Çìµå Çʵ忡´Â Áß°£¿¡ °ÅÃİ¥ ÇÁ·Ï½Ã³ª °ÔÀÌÆ®¿þÀÌ °æ·ÎÀÇ ÃÖ´ë¼ö¸¦ ÁöÁ¤)
¡Ø6 ID :'Aladdin', PW : 'open sesame'ÀÏ °æ¿ì 'Aladin:open sesame'À» Base64·Î ÀÎÄÚµùÇÑ ÄÚµå´Â "QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
ÁÖÀÇ : Base64 ÀÚü°¡ °ø°³µÈ ÀÎÄÚµùÀ̹ǷΠº¸¾È»ó ¹®Á¦°¡ ¸¹´Ù.
ºÐ ·ù |
Massages |
Header |
¼³ ¸í |
Áö ¿ø ¹ö Àü |
»ý·«¿©ºÎ |
|
HTTP1.0 |
HTTP1.1 |
|||||
Response |
Status-Line |
HTTP-Version |
HTTP" + 0.9¡1.1(ÇØ´ç ÇÁ·ÎÅäÄÝ) |
¡Û |
¡Û |
|
|
|
Status-Code |
¼ö½Å»óÅÂÄÚµå-(4PageÀÇ Ç¥ÂüÁ¶.) |
¡Û |
¡Û |
|
|
|
Respon-Phrase |
¼ö½Å »óÅÂÄڵ忡 ´ëÇÑ °£·«ÇÑ ¼³¸í-(4PageÀÇ Ç¥ÂüÁ¶.) |
¡Û |
¡Û |
|
|
Response-Header |
Location |
¿ä±¸ÇÑ Á¤º¸ ½ÇÁ¦ À§Ä¡. ¿Å°ÜÁö°Å³ª ´Ù¸¦°æ¿ì-Á¤º¸ÁÖ¼Ò°¡ ½ÇÁ¦ À§Ä¡ Á¤º¸. (redirection,forwording ´Ü, Àý´ëÁÖ¼Ò¸¸ °¡´É.) |
¡Û |
¡Û |
|
|
|
Server |
¼¹ö ÇÁ·Î±×·¥ÀÇ À̸§°ú ¹öÀü Á¤º¸ ex)Server: Apache/1.3a1 |
¡¿ |
¡Û |
|
|
|
WWW-Authenticate |
»ç¿ëÀÚ ÀÎÁõÀÌ ÇÊ¿äÇÑ ÀÚ¿øÀ» ¿ä±¸½Ã, Çʿ䵥ÀÌÅÍ¿Í ¼¹ö°¡ Á¦°øÇÏ´Â ÀÎÁõ ¹æ½Ä ex)WWW-Authenticate: Basic realm="¾ÆÀÌ ¼ÒÇÁÆ®" |
¡¿ |
¡Û |
|
|
|
Age |
¿ä±¸ÈÄ ¿ø ¼¹ö(origin Server)¿¡¼ ÀÀ´ä»ý¼ºÇÏÁö±îÁöÀÇ ½Ã°£(ÃÊ´ÜÀ§) |
¡¿ |
¡Û |
|
|
|
Proxy-Authenticate |
¼¹ö°¡ ÇÁ·Ï½Ã ¼¹öÀÏ °æ¿ì À¯Àú ÀÎÁõÀ» ¿ä±¸Çϱâ À§ÇÑ Çì´õÀÌ´Ù. |
¡¿ |
¡Û |
|
|
|
Public |
¼¹ö¿¡¼ Áö¿ø °¡´ÉÇÑ MethodÀÇ ¸®½ºÆ®(Á¦ÇÑÀÇ Àǹ̴¾øÀ½) ex)Public: OPTIONS, MGET, MHEAD, GET, HEAD |
¡¿ |
¡Û |
|
|
|
Retry-After |
503 ¿¡·¯½Ã -¸îÃÊ(½Ã°£)ÈÄ¿¡ ´Ù½Ã ¿ä±¸ ¸Þ½ÃÁö¸¦ º¸³»¶ó´Â Á¤º¸ ex)Retry-After: Fri, 31 Dec 1999 23:59:59 GMT(Time) Retry-After: 120 (Second) |
¡¿ |
¡Û |
|
|
|
Warning |
»óÅÂÄÚµå¿Í ÀÀ´ä ±¸¹®¿¡ Ãß°¡ÀûÀÎ °æ°í |
¡¿ |
¡Û |
|
|
|
Vary |
|
¡¿ |
¡Û |
|
<Status-Code Header ¼ö½Å»óÅ ǥ>
1xx: Informational - ¿ä±¸¸Þ½ÃÁö¸¦ ¹ÞÀº ÈÄ ¿¬°á Áß ÀÛ¾÷ÇÒ ¶§. |
2xx: Success - ¿ä±¸¸Þ½ÃÁö¸¦ Á¦´ë·Î ¹Þ¾ÒÀ» ¶§. |
3xx: Redirection - ¿ä±¸¸Þ½ÃÁö¸¦ ¼öÇàÇϱâ À§ÇØ ´Ù¸¥ ÀÛ¾÷ÀÌ ÇÊ¿äÇÒ ¶§. |
4xx: Client Error - ¿ä±¸ ¸Þ½ÃÁöÀÇ Çü½ÄÀÌ Æ²¸®°Å³ª ºüÁø ºÎºÐÀÌ ÀÖÀ» ¶§. |
5xx: Server Error - ¼¹ö¿¡ ¹®Á¦°¡ ÀÖÀ» ¶§. |
100 Continue |
200 OK ¼º°øÃ³¸® |
300 Multiple Choices (½ÇÁ¦ ¹ß»ýÇÏÁö ¾ÊÀ½) |
400 Bad Request ¿ä±¸°¡ ¿Ã¹Ù¸£Áö ¾ÊÀ½ |
500 Internal Server Error ¿¹±âÄ¡ ¸øÇÑ ¼¹ö󸮿À·ù |
101 Switching Protocols |
201 Created ¿ä±¸¿¡µû¶ó »õ·Î¿îÀÚ¿ø»ý¼º(PUT) |
301 Moved Permanently URLÀÌ È®Á¤ÀûÀ¸·Î ¿Å°ÜÁü |
401 Unauthorized »ç¿ëÀÚ ÀÎÁõÀÌ ÇÊ¿ä |
501 Not Implemented ¿ä±¸¿¡ ´ëÇÑ Áö¿øºÒ°¡ (transfer-Encoding) |
|
202 Accepted ¿ä±¸¸¦ ÀÌÇØÇÏ¿´À¸¸ç ÁøÇàÁß |
302 Moved Temporarily URLÀÌ ÀÓ½ÃÀûÀ¸·Î ¿Å°ÜÁü |
402 Payment Require |
502 Bad Gateway °ÔÀÌÆ®¿þÀÌ¡¤ÇÁ¶ô½ÃÀÇ ÀÀ´ä¿À·ù |
|
203 Non-Authoritative Information |
303 See Other |
403 Forbidden ¿ä±¸´Â ÀÌÇØÇϳª ¼öÇà°ÅÀý(PUT) |
503 Service Unavailable ¼¹öºÎÇÏ·Î ÀÀ´äºÒ°¡ |
|
204 No Content ¿ä±¸ÀÚ·á¿¡ Á¤º¸°¡ ¾øÀ½(empty) |
304 Not Modified(If-Modified-Since) ¼öÁ¤³¯Â¥¿¡ ¼öÁ¤µÇÁö ¾ÊÀ½ |
404 Not Found ¿ä±¸ÇÑ ÆÄÀÏÀÌ ¾øÀ½ |
504 Gateway Time-out |
|
205 Reser Content |
305 Use Proxy |
405 Method Not Allowed Çã¶ôµÈ ¸Þ¼Òµå°¡ ¾Æ´Ô |
505 HTTP Version not supported (¿ä±¸¸¦ ¹«½ÃÇÒ ¼ö ÀÖÀ½..??) |
|
206 Partial Content |
|
406 Not Acceptable |
|
|
|
|
407 Proxy Authentication Required |
|
|
|
|
408 Request Time-out |
|
|
|
|
409 Conflict |
|
|
|
|
410 Gone |
|
|
|
|
411 Length Required |
|
|
|
|
412 Precondition Failed |
|
|
|
|
413 Request Entity Too Large |
|
|
|
|
414 Request-URI Too Large |
|
|
|
|
415 Unsupported Media Type |
|