浏览器在发送HTTP请求时使用什么编码?浏览器编码HTTP请求
我的意思是当浏览器发送第一个请求时,它如何确保它使用的编码能够被服务器理解?
实施例:
GET /hello.htm HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: www.tutorialspoint.com
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
在这种情况下,“编码”意味着什么*确切*? –
@JulianReschke我的意思是,当发送HTTP请求时,它必须以某种方式进行编码,例如UTF-8,UTF-16。它如何知道服务器可以解码的编码? – CuriousGuy
所以你在谈论URI? –