Everything need to know about HTTP

Everything need to know about HTTP

### what is http and why need it HTTP means HyperText Transfer Protocol. It is the underlying protocol used by the World Wide Web that defines how messages are formatted and transmitted. HTTP is a stateless protocol. This means that the server...

what is HTTP and why need it

HTTP means HyperText Transfer Protocol. It is the underlying protocol used by the World Wide Web that defines how messages are formatted and transmitted.

HTTP is a stateless protocol. This means that the server does not require to maintain information or status about every user for the duration of multiple requests. This also means that the server does not need to maintain a continuous connection with the client.

In a stateless protocol, the server opens a connection for every request and closes it after the response is sent. *Steps in HTTP requests processing *

  • Client requests a connection with the server.
  • The server opens a connection with the client
  • The client makes a request to the server
  • The server processes the request
  • The server sends a response to the client
  • The client closes the connection.

HTTP Requests

The HTTP request method is used to indicate the action to be performed on the data transmitted to the server. These are the types of request that you can make using HTTP

  1. GET - requests for a data
  2. HEAD - requests for data but without the response body
  3. POST - submits data causing a change in state on the server
  4. PUT - replaces the specified data with request data
  5. DELETE - deletes the specified data
  6. CONNECT - establishes a tunnel to the server
  7. OPTIONS - describes the communication options for the target data
  8. TRACE - perform message loop-back test along the path to the target data
  9. PATCH - apply partial changes to data

Response Codes

The response codes also called status codes are a 3 digit integer to identify what has happened to the request sent to the server. Responses are grouped in 5 classes which are identified by the first digit of the code

  1. 1xx (Informational Resources) - the request has been received and the process is
  2. continuing
  3. 2xx (Successful Responses) - the request was successfully received, understood, and
  4. accepted
  5. 3xx (Redirection Messages) - further action must be taken in order to complete the
  6. request
  7. 4xx (Client Error Responses) - request contains incorrect syntax or cannot be
  8. fulfilled
  9. 5xx (Server Error Responses) - server failed to fulfill an apparently valid request

http request response

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

6 Things About HTTP Request in Dart For Beginners

Here is an http request to get a user's data using GET request, First, we have to make an async function that returns a type. If you are here and a beginner, that means you want to learn everything about making an API request using Dart in Flutter, then you are in the right place for the HTTP tutorial.

HTTP requests using Axios

The most common way for frontend programs to communicate with servers is through the HTTP protocol. You are probably familiar with the Fetch API and the `XMLHttpRequest` interface, which allow you fetch resources and make HTTP requests.

Requests Python 3 - Download Files (Free books) with requests-html and requests Python 3

In this video, we will use requests python 3 and requests-html to download pdf files from Springer's Website. Recently, I came across a list of 408 free book...

How To Make an HTTP Request In Node.js Tutorial

In this tutorial, you'll learn how to make an HTTP request in Node.js. This tutorial will show you a couple of ways to make simple network requests with Node

Spring Boot — Mapping HTTP Response Status Codes to Custom Error Pages

In the video, we take a closer look at Spring Boot mapping HTTP response status codes to custom error pages.