HTTP
HTTP
HTTP
+1
Published Apr 5, 2022•Updated Oct 26, 2022
Contribute to Docs
HTTPS
Instead of HTTP, a more secure version, HTTPS, should be used in order to
encrypt information sent between the client and server. This encryption is
done with Transport Layer Security (or TLS, formerly SSL). Some benefits of
HTTPS include:
• Financial data, like credit card information or bank account numbers, are
protected from interception.
• Domain-ownership can be better verified by users.
• A growing standard of trust around sites that use HTTPS.
Websites can be certified with HTTPS so that browsers “know” the official site
for a person, business, etc. These certifications are approved and signed by a
trusted certificate authority (CA).
Requests
HTTP requests are stateless, meaning that all requests are independent and
have no knowledge of one another. Requests contain the following parts:
Method Description
GET Requests data, content, or other resources from the server.
POST Sends data, content, or other resources to the server.
PUT Sends updates for existing content on the server.
DELETE Deletes specific content from the server.
Responses
If the server is able to connect with the client and fulfill its request, it will send
back a response that includes the following parts:
Informational
Redirection
Client Errors
Server Errors
Client browsers can use caches for serving content instead of making repeated
requests for the same content. Examples of caches include:
• CDNs that retain copies of web content and serve from close network
connections.
• Proxy browser caches, like ones used in progressive web apps that allow a
single user to cache and access content offline.
• Shared proxy caches that store resources for multiple users (internet
service provider, company staff network, etc.).
2.