Which encoding is used by the HTTP protocol?

前端 未结 2 842
孤街浪徒
孤街浪徒 2020-12-09 08:00

When a browser sends an HTTP request to a web server, what encoding is used to encode the HTTP protocol on the wire? Is it ASCII? UTF8? or UTF16? Or does it specify which en

2条回答
  •  不思量自难忘°
    2020-12-09 08:36

    HTTP 1.1 uses US-ASCII as basic character set for the request line in requests, the status line in responses (except the reason phrase) and the field names but allows any octet in the field values and the message body.

提交回复
热议问题