What Is HTTP
What Is HTTP
When they make a request, clients use a URL (Uniform Resource Locator) that
contains the information needed to access the server resources.
Request Line
The request line or start line is sent by the client in order to start the action on the
server. It includes the following elements:
• an HTTP method.
• the request-target which can be a URI or an URL to either a path or a
protocol. URI is an identifier for a specific page, while the URL is a special
type of identifier that can also contain information about how to access the
resource.
• the HTTP version that defines the structure of the remaining message.
Headers
The HTTP header allows for additional information to be passed between server
and client such as cookies, information about the authorization token, or user agent
using a special string that helps server identify client browser and OS version..
Similar to the same basic structure of an HTTP request, the HTTP headers are case-
sensitive and are followed by a colon (‘:’) and a value.
Message Body
The server uses the message body to deliver the information back to the client. The
message body contains the information, the request line, headers, an empty line,
and the message body that is optional.
While not all requests have a body, the ones that do, often use POST to deliver the
payload.
GET
Perhaps the most popular HTTP request method, GET is used to retrieve data from
a specific server.
HEAD
Similar to the GET method, this technique won’t have a message in the body.
Usually, the HEAD request is used when trying to assess the availability of an API
endpoint.
POST
POST is another popular HTTP request method. You use POST when you want to
send information to the server to either create or update a resource using the
information stored in the body of the HTTP request.
PUT
Similar to how the POST method works, PUT will update or create a resource.
However, the difference is that the PUT requests are idempotent, which means that
the result will stay the same regardless of how many times you call the PUT request.
DELETE
The DELETE method allows you to delete a particular resource on the server.
PATCH
Similar to the PUT and POST requests, PATCH will update the information of the
server, but unlike the two, PATCH will apply a partial modification. You want to use
PATCH when changing just the title of the product entry.
TRACE
The TRACE request calls a loop-back test along the path of a target resource.
Usually, it’s used to run debugging and diagnostic tests on APIs.
CONNECT
While lesser known than the other request methods, CONNECT is used to create a
connection to a server over HTTP. It creates a tunnel connection to a server
specified by the URL parameter.
HTTPS is an extension of the classic HTTP request that secures request protocols by
using bidirectional encryption using server-side digital certificates called SSL.
You’ll be able to select the method you want to use, the URL you want to track, the
interval you want to run the test, and the different locations you want to have it run
the test. The monitoring solution also allows you to configure the request settings
like headers, query params, cookies, and body.
To ensure the quality of your service quality, you’ll probably want to create some
alerts to be triggered when one of the conditions you’ve set should fail.
Unit 5
https://crashtest-security.com/enable-security-headers/
https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html
unit 3
https://www.brainkart.com/article/Architecting-Web-Services_8747/
unit4
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers