HTTP Versions Flashcards
This version of HTTP is called the “one-line protocol” because requests consisted of only one line. Here GET was the only method. no headers were found in requests or responses
HTTP/0.9
True or false?
in HTTP/0,9 only HTML files existed on the web to sent over HTTP. There was no Content-Type header to indicate MIME Type. Instead, HTTP response messages contained only the document requested.
True
True or false, response messaged have status codes or reason phrases on HTML 0.9
False
What would happen if there is an error in HTTP/0.9
An HTML file would be sent with a description of the error.
When was HTTP 1.0 features introduced?
1991-1995
In this version, response messages were now prefixed with a status line. Headers were added to request and response messages.
HTTP/1.0
How was request and responses message encoded in HTTP/1.0?
ASCII-encoded
True or False?
In HTTP/1.0 HTTP no longer only transferred hypertext. It could transfer other media types (using Content-Type headers)
True
When was the first specification of HTTP /1.1 published?
Early 1997
HTTP/1.1 is now known as the?
Standardized Protocol
What were the 3 new features introduced in HTTP/1.1?
Connection reuse
Pipelining
Chunked Responses
What does connection reuse mean
TCP connection could be kept alive for further request, saving time it took to load all resource in the web page. It uses connection header.
What did pipelining allowed?
It allowed the clients to send a second request before a response was received for the first request
What does chunked responses do?
Large responses could be split up over several messages.
What did client negotiation offered?
Clients and server could negotiate and agree on the language, encoding, and type of the data they exchanged.
When was HTTP/2.0 officially standardized?
May 2015
How much percent of websites uses HTTP/2?
50.2%
What did HTTP/2 improve?
it improved the transport performance
How did HTTP/2 improve transport performance?
- Reducing latency
- increasing throughput
When we say binary protocol in HTTP/2, what does it mean?
It means that request and responses can’t be manually created/read anymore. Meaning that it’s more efficient to parse, messages take up less space, and there is less error-prone.
In HTTP/2 what does multiplexing do?
Multiple requests and responses can be in flight at the same time. It improved pipelining, allowing response messages to. be sent back in any order.
True or false, in HTTP/2 headers are compressed to remove duplication and save overhead on data transfer.
true
What does server push do?
It allows server to populate data in a client cache in advance of the data being required.
When was the first draft of HTTP/3.0 released?
January 2021