031.3 HTTP Basics Flashcards
Defines how a client asks the server for a specific resource and is the set of rules that define how the client application should format
request messages that will be sent to the server.
HypterText Transfer Protocol (HTTP)
the client creates a request message identifying the
resource it needs and forwards that message to the server via the network.
HTTP Request
server evaluates where to extract the requested resource and sends a response message back to
the client. The reply message contains details about the requested resource, followed by the
resource itself
HTTP Response
Follows HTTP rules to interpret the request and format reply messages.
Server (serves requests - duh)
The part of the message that defines the resource details and other context information
Header
The part following the header that contains the content of the corresponding resource is called the
Both request messages and response messages can have these but in most cases only the response message has one.
payload
of the message.
The first stage of an HTTP data exchange between the client and the server is initiated by this entity when it writes a request message to the server.
client
encrypted version of HTTP
The protocol: HyperText Transfer Protocol Secure (https)
s an address that points to a resource on the
Internet. This resource is usually a file that can be copied from a remote server, but
URLs can also indicate dynamically generated content and data streams.
A Uniform Resource Locator (URL)
Before contacting the server, the client needs to convert learning.lpi.org to its corresponding
IP address. The client uses another Internet service to request the IP address of a host name from one or more of these - that are automatically defined by the Internet Service Provider, ISP
The Domain Name System (DNS)
The client tries to connect to the HTTP or HTTPS port with server’s
IP address
Identified by numbers and intertwine and identify distinct communication channels within a client/server connection.
Transmission Control Protocol (TCP)
Port 80
HTTP
Port 443
HTTPS
For audio and video protocols used by web applications to implement audio and video calls and is a lower level protocol that is more efficient than HTTP for transferring data streams in both directions.
WebSockets
The encrypted connection is established between client and server even before
any HTTP message is exchanged, using
TLS
Transport Layer Security
Interpreted by the server as the location or path for the resource being requested
/en/
english
defines what operation the client wants to perform on the server
HTTP method
This method informs the server that the client requests the resource
GET
Most recent version of HTTP protocol wherby messages are encoded in a binary structure whereas message encoded in HTTP/1 are sent in plain text
HTTP/2
May appear redundant because the server’s host has obviously been identified by the client in order to establish the connection and its reasonable to assume that the server knows its identity
Host header field.
it is important to inform the host of the expected host name in the request header because it is common practice to use the same HTTP server to host more than one website
Virtual Host
Header field contains details about the client program making the request and this field can be used by the server to adapt the response to the needs of a specific client but is more often used to produce statistics about the clients using the server
User-Agent
Of more immediate value because it informs the server about the format for the requested resource and this resource can specify / as the format
Accept field