¡¡¡¡Ò» HTTP¸ÅÊö
HTTP¼òµ¥ËµÆäʵ¾ÍÊÇÒ»Ì×ÓïÑÔ½»Á÷¹æÔò£¡HttpʹÓõÄÊÇ¿É¿¿µÄÊý¾Ý´«ÊäÐÒ飬Òò´Ë¼´Ê¹Êý¾ÝÀ´×ÔµØÇòµÄÁíÒ»¶Ë£¬Ò²Äܹ»È·±£Êý¾ÝÔÚ´«Êä¹ý³ÌÖв»»á±»Ë𻵻ò²úÉú»ìÂÒ¡£
¡¡¡¡B/S½á¹¹
Óû§ÔÚä¯ÀÀÆ÷£¬ÇëÇó·þÎñÆ÷¾ßÌåµÄÎļþµØÖ·£¬³ÆΪÇëÇóÐÒ飬Ȼºó·þÎñÆ÷×ö³öÏìÓ¦·µ»ØÓû§ÇëÇóµÄÏàÓ¦µÄÐÅÏ¢£¬³ÉΪÏìÓ¦ÐÒé¡£
ÇëÇóÐÒ飺
¡¡¡¡¡¡¡¡×é³É
1.ÇëÇóÊ×ÐÐ
1.1 ÇëÇó·½·¨ 1.2 ÇëÇóµØÖ· 1.3 ÇëÇóÐÒé
2.ÇëÇóÍ·
HOST ·ÃÎÊÖ÷»ú
connection Á¬½ÓÊÇ·ñ±£³Ö
content-length ÇëÇóÕýÎij¤¶È
cache-control »º´æ»úÖÆ
accept ·µ»Ø¸ñʽ ˵Ã÷ ¸æËß·þÎñÆ÷·µ»ØÊý¾Ý°üµÄ¸ñʽ ¸½£º */*±íʾËùÓÐÀàÐÍ
user-agent ±¾µØ»·¾³ÐÅϢϵͳ°æ±¾
content-type ÕýÎÄÀàÐÍ ¸½£º±íµ¥ÏÔʾ application/x-www-form-urlencoded
Referer À´Ô´µØÖ·
accept-encoding ·µ»ØµÄÊý¾ÝÖ§³ÖµÄ ±àÂëºÍѹËõ
accpet-language ·µ»ØµÄÊý¾ÝÖ§³ÖµÄÓïÑÔ
ÏìÓ¦ÐÒé £º
×é³É
1.ÏìÓ¦Ê×ÐÐ
1.1 ÏìÓ¦ÐÒé 1.2 ÏìӦ״̬Âë ¸½£º 200 ±íʾ·ÃÎÊÕý³£/³É¹¦ 404 ±íʾ×ÊԴδÕÒµ½ 500 ±íʾ·þÎñÆ÷ÄÚ²¿´íÎó 302 ±íʾ Öض¨ÏòÌøת
2.ÏìӦͷ
server ·þÎñÆ÷
content-type ·µ»ØµÄÀàÐÍ
content-length ·µ»ØµÄ³¤¶È
date ʱ¼ä¸ñʽ ·þÎñÆ÷Ò»°ã·µ»ØµÄÊǸñÁÖÍþ¶ûʱ¼ä£¬ÖйúÔÚ¶«°ËÇø£¬ËùÒÔ·µ»ØµÄʱ¼ä+8¸öСʱ¾ÍÊÇÏÖÔÚµÄʱ¼ä
¸½£ºHTMLÍøÒ³µÄmetaÖ÷ÒªÊÇΪÁËÌá½»¸ø·þÎñÆ÷ÐÒéµÄÇëÇóµÄÐÅÏ¢¡£
¡¡