当我们打开一个网页时,浏览器要向网站服务器发送一个HTTP请求头,然后网站服务器根据HTTP请求头的内容生成当次请求的内容发送给浏览器。HTTP请求头的具体内容:
Accept-Language: zh-cn,zh;q=0.5 可接受的响应内容语言列表。
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7 可接受的字符集
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 可接受的响应内容类型(Content-Types)。
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; 域名)
Host: 域名
Connection: Keep-Alive 客户端(浏览器)想要优先使用的连接类型