HTTP 메시지 분석

4612 단어 HTTP 메시지 분석
HTTP 요청 메시지
//    Post  ,      :  http://localhost:1538/WebForm1.aspx  ,     HTTP1.1     
POST http://localhost:1538/WebForm1.aspx HTTP/1.1
-----------------------------------------------------------------------------------------------------

//text/html       ,          html  ;application/xhtml+xml                   xhtml+xml   */*:                    
Accept: text/html, application/xhtml+xml, */*

*/-----------------------------------------------------------------------------------------------------
//                 ( :      WebForm1.aspx                )
Referer: http://localhost:1538/WebForm1.aspx

-----------------------------------------------------------------------------------------------------
// (   )  zh-CN  (    )
Accept-Language: zh-CN
-----------------------------------------------------------------------------------------------------
//application/x-www-form-urlencoded:       。 action get  ,    x-www-form-urlencoded      form         (name1=value1&name2=value2...),       append url  , ?  ,      url。  action post  ,    form     http body ,     server。
Content-Type: application/x-www-form-urlencoded  
-----------------------------------------------------------------------------------------------------
//     , (   )   Mozilla/5.0    ,   11.0(rv:11.0)     (IE)      7.0   (Trident/7.0)【        Firefox     Gecko ,Gecko   Firefox        ,      】           64 (WOW64) windows7(Windows NT 6.1),
//xp windows nt5.1,vista windows nt6.0,win7 windows nt6.1,win8 windows nt6.2
//like Gecko  IE11    ,      Gecko   。IE11             MSIE
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
-----------------------------------------------------------------------------------------------------

//                (gzip)   ;          HTTP   ,         HTTP  ;           HTTP  ,   "Accept-Encoding: gzip, deflate"       gzip deflate      .                      ,IE                        。                    ,               。
【                 :GZip   deflate;  :http://jingyan.baidu.com/article/9f63fb91d862b0c8400f0eb0.html】
Accept-Encoding: gzip, deflate
-----------------------------------------------------------------------------------------------------

//        localhost        1538            
Host: localhost:1538
-----------------------------------------------------------------------------------------------------
Content-Length: 429
-----------------------------------------------------------------------------------------------------

//     ,  web               ,     TCP  ,       Connection: Keep-Alive     ,        
// HTTP/1.1 ,      Keep-Alive,      ,    ,    Keep-Alive ,          ,             HTTP   TCP       ,                  ,               
//  css,  ,js       (Reques),          ,                  ,          。                       【                】
Connection: Keep-Alive
-----------------------------------------------------------------------------------------------------

// HTTP1.1      CacheControl = no-cache ,           。   HTTP 1.0         Cache-Control   ,         HTTP 1.0    ,IE  Pragma:no-cache     HTTP       。            (https://)/      ,           Pragma:no-cache   ,  Internet Explorer       。  :Pragma:no-cache                 ,          ,      Expires:-1  ,      ,         。
Pragma: no-cache
-----------------------------------------------------------------------------------------------------
//    Cokkie      。
Cookie: ASP.NET_SessionId=itcka5su2tuqimfk3r5h0v4y

__VIEWSTATE=%2FwEPDwUKMjExMTY5ODM3MA9kFgICAw9kFgICAQ8PFgIeBFRleHQFDzDliqDkuIotNuetieS6jmRkZI7u6iaGEp1Y8ibYMCEez59fyciMHOcKtdE1mBzZ6oZe
-----------------------------------------------------------------------------------------------------

HTTP 응답 메시지
/             Cassini         (         IIS),          4.0.1.7
Server:Cassini/4.0.1.7

//        
Data:Tue,23 Jul 2015 23:59:18 GMT

//           asp.net   ,X-AspNet-Version:4.0.30319  :            .net   4.0.30319     (    :framework 4.0    )
X-AspNet-Version:4.0.30319

//      ,         text  ,          ?   html     。         UTF-8    ,             (               ,     )
Congtent-Type:text/html; charset=utf-8

//                      8927   
Congtent-Length:8927

//    
Connection:Colse

---------HTTP报文解析_第1张图片

좋은 웹페이지 즐겨찾기