Which encoding is used by the HTTP protocol? -
When a browser sends an HTTP request to the web server, what encoding to encode HTTP protocol on the wire is used to? Is this ASCII? UTF8? Or UTF 16? Or does it specify which encoding it uses in a predefined format (before that there is a decoding?)
P.S. I'm not asking about the actual payload of request / response (e.g., HTML) I am asking about request line (i.e. GET /index.html HTTP / 1.1 ) and header (i.e. host: google.com )
HTTP 1.1 uses US-ASCII as the default character set for the request, in response (to Except) and any other octet allows field values and more.
Comments
Post a Comment