L
L
lil_web2019-10-20 22:39:57
HTTP headers
lil_web, 2019-10-20 22:39:57

Is the Host HTTP header only required in version 1.1?

I'm learning theory for social security, now HTTP. I would like to clarify.
The Mozilla documentation says that headers are optional in the request, but Hostrequired for protocol version 1.1.
I understand correctly that Host is optional in other versions of HTTP: before 1.1, 2.0 and 3?
Overview of HTTP
Header Host

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-10-22
@lil_web

http2 uses the :authority pseudo-header for this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question