美文网首页
关于HTTP请求头

关于HTTP请求头

作者: _Henry_ | 来源:发表于2017-05-12 10:10 被阅读0次

    GET请求头

    // 请求报文
    GET http://www.jianshu.com?id=XXX  HTTP/1.1
    
    // 请求首部字段
    Host: www.jianshu.com
    Proxy-Connection: keep-alive
    Accept: application/json
    User-Agent: Chrome/57.0.2979.2 Safari/537.36
    Referer: http://www.jianshu.com
    Accept-Encoding: gzip, deflate, sdch
    Accept-Language: zh-CN,zh;q=0.8
    Cookie: ...
    

    POST请求头

    POST /search HTTP/1.1 
    Host: www.google.cn     
    Accept: application/json 
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; TheWorld)   
    Referer: http://www.google.cn/    
    Accept-Language: zh-cn    
    Accept-Encoding: gzip, deflate    
    Connection: Keep-Alive    
    Cookie: PREF=ID=80a06da87be9ae3c:U=f7167333e2c3b714:NW=1:TM=1261551909:LM=1261551917:S=ybYcq2wpfefs4V9g;   
    NID=31=ojj8d-IygaEtSxLgaJmqSjVhCspkviJrB6omjamNrSm8lZhKy_yMfO2M4QMRKcH1g0iQv9u-2hfBW7bUFwVh7pGaRUb0RnHcJU37y-  
    FxlRugatx63JLv7CWMD6UB_O_r    
      
    hl=zh-CN&source=hp&q=domety  
    

    相关文章

      网友评论

          本文标题:关于HTTP请求头

          本文链接:https://www.haomeiwen.com/subject/yprztxtx.html