Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ
  HTTPÀÇ GET ±æÀÌÁ¦ÇÑ(?)°ú MSIEÀÇ ¿¡·¯ÆäÀÌÁö ÀÛ¼ºÀÏ : 2005/09/03 23:30
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 11228
     
    Á¦  ¸ñ : HTTPÀÇ GET ±æÀÌÁ¦ÇÑ(?)°ú MSIEÀÇ 404 ¿¡·¯ÆäÀÌÁö
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
    ÀÛ¼ºÀÏ : 2005.9.3(Åä)

    °£È¤ À¥¿¡¼­ GET ¿äûÀÇ ±æÀÌ Á¦ÇÑÀº ¾ó¸¶³Ä µÇ´À³Ä´Â Áú¹®À» ¹Þ´Â´Ù.
    ¶ÇÇÑ ÀÎÅͳÝÀͽºÇ÷η¯(ÀÌÇÏ MSIE)¿¡¼­´Â ¼­¹ö·Î ºÎÅÍ 404 ¿¡·¯Äڵ带 ¹ÞÀ¸¸é
    ¹«Á¶°Ç ºê¶ó¿ìÀú ÀÚüÀÇ ¿¡·¯ÆäÀÌÁö¸¦ Ãâ·ÂÇÑ´Ù´Â ¸»À» ÇÏ´Â »ç¶÷µµ ÀÖ´Ù.
    À̺κп¡ ´ëÇؼ­ Á¤¸®ÇصΰíÀÚ ÇÑ´Ù.

    1. HTTP¿¡¼­ GET methodÀÇ ±æÀÌ Á¦ÇÑÀÖ³ª?

    HTTP 1.1 (http://www.w3.org/Protocols/rfc2616/rfc2616.html)¿¡ Á¤ÀÇµÈ method´Â
    8°³°¡ ÀÖÀ¸¸ç, URLÀÇ ±æÀÌ Á¦ÇÑ¿¡ ´ëÇÑ Á¤ÀÇ´Â ¾ø´Ù.

    ---------   -------------------------------------------------
    Method      ¼³¸í
    ---------   -------------------------------------------------
    GET         ¿äûÇÒ Á¤º¸¸¦ URI¿¡ ÀÇÇؼ­
    POST        message-body¸¦ ÅëÇØ µ¥ÀÌÅ͸¦ Àü¼ÛÇÑ´Ù. Ŭ¶óÀ̾ðÆ®ÀÇ µ¥ÀÌÅ͸¦ ¼­¹ö·Î Àü¼Û
    HEAD        GET°ú À¯»çÇÏ°Ô URI¿¡ ÀÇÇØ Á¤º¸¸¦ ¿äûÇϳª ¿äû µ¥ÀÌÅÍ(message-body)¸¦
                Å¬¶óÀ̾ðÆ®·Î Àü¼ÛÇÏÁö ¾ÊÀ½.
    OPTIONS     »ç¿ë°¡´ÉÇÑ ¸Þ½îµå¿¡ ´ëÇÑ Á¤º¸¸¦ º¸¿©ÁÜ
    PUT         µ¥ÀÌÅ͸¦ ¼­¹ö¿¡ ÀúÀåÇϱâ À§ÇÑ ¿ëµµ. Áï, ÆÄÀÏÀ» ¾÷·Îµå Çϴµ¥ »ç¿ë
                ½ÇÁ¦·Î´Â °ÅÀÇ »ç¿ë ¾ÈÇÔ
    DELETE      ¸®¼Ò½º »èÁ¦ (WebDAV¿¡¼­ ÁÖ·Î »ç¿ë)
    TRACE       ¿äûÇÑ URI°¡ Ŭ¶óÀ̾ðÆ®·Î ¿À´Â °æ·Î¸¦ º¸¿©ÁÜ
    CONNECT     proxy ¿äû
    ---------   -------------------------------------------------

    ±×·³ ¿Ö ±æÀÌÁ¦ÇÑ¿¡ ´ëÇÑ ¾ê±â°¡ ³ª¿ÔÀ»±î? ¹Ù·Î MSIE ºê¶ó¿ìÀú ¶§¹®ÀÌ´Ù.
    MSIE¸¦ »ç¿ëÇÒ °æ¿ì URL±æÀÌ´Â 2083bytes·Î Á¦ÇѵǸç,
    GET ¸Þ½îµå¸¦ »ç¿ëÇÏ´Â °æ¿ì 2048Bytes·Î Á¦ÇѵȴÙ.

    * http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427

     
    Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters, with a maximum path length of 2,048 characters. This limit applies to both POST and GET request URLs.

    If you are using the GET method, you are limited to a maximum of 2,048 characters (minus the number of characters in the actual path, of course).
     



    2. MSIE¿¡¼­ 404 µîÀÇ ¿¡·¯ÆäÀÌÁö¿¡ ´ëÇØ

    Apache À¥¼­¹ö¿¡´Â ErrorDocument ¼³Á¤(´Ù¸¥ À¥¼­¹öµµ ¼³Á¤ °¡´É)À» ÅëÇؼ­
    404, 500, ... µîÀÇ ¿¡·¯Äڵ忡 µû¶ó Á¤ÀÇµÈ ÆäÀÌÁö¸¦ º¸¿© ÁÙ ¼ö°¡ ÀÖ´Ù.
    ±×·¯³ª MSIE¿¡¼­´Â ÀÌ·± ¼³Á¤°ú ¹«°üÇÏ°Ô ºê¶ó¿ìÀú ÀÚü ¸Þ½ÃÁö¸¦ »Ñ·ÁÁÖ´Â °æ¿ì°¡ ÀÖ´Ù.
    ¿¡·¯ÆäÀÌÁöÀÇ ³»¿ëÀÌ 512bytes¸¦ ³ÑÁö ¾ÊÀ¸¸é ÀÚü ÆäÀÌÁö¸¦ ¶ç¿ì±â ¶§¹®ÀÌ´Ù.

    Ç¥½ÃÇÒ ³»¿ëÀÌ ¾ø´õ¶óµµ ÆäÀÌÁö³»¿¡ <! -- .... --> µîÀ¸·Î ÁÖ¼® ³Ö¾î 512bytes ÀÌ»ó¸¸
    µÇµµ·Ï ÇÏ¸é µÈ´Ù.

    * http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807

     
    Several frequently-seen status codes have "friendly" error messages that Internet Explorer 5.x displays and that effectively mask the actual text message that the server sends. However, these "friendly" error messages are only displayed if the response that is sent to the client is less than a specified threshold. For example, to see the exact text of an HTTP 500 response, the content length must be greater than or equal to 512 bytes.
     


    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ / URL : http://coffeenix.net/board_view.php?bd_code=1167