HTTP (HyperText Transfer Protocol) is the command language that structures requests and responses over the internet, enabling clients (like browsers) to communicate with servers; it operates over TCP to establish connections, with common methods including GET (retrieve existing resources), POST (create new resources), PUT (edit existing resources), and DELETE (remove resources), and responses include status codes like 200 OK (successful request) or 404 Not Found (resource not located), while HTTPS provides encryption for secure data transmission.
HTTP Requests Explained: GET, POST, PUT, DELETE
Added:hi i'm rob i'm a developer and i'm here to teach you about http request you've worked with http all the time when accessing a site loading its content and interacting with its content in this video you'll learn about the different processes that take place to make these actions on the internet work smoothly http stands for hypertext transfer protocol and is used to structure requests and responses over the internet the transfer of resources happens using tcp transmission control protocol in viewing web pages tcp manages the channels between your browser and the server in this case codecademy.com tcp is used to manage many types of internet connections in which one computer or device wants to send something to another http is the command language that the devices on both sides of the connection must follow in order to communicate when you type an address such as codecademy.com into your browser you are commanding it to open a tcp channel to the server that responds to that url in this situation your browser which is making the request is called the client the url you are requesting is the address that belongs to the server once the tcp connection is established the client sends an http get request to the server to retrieve the web page it should display after the server has sent the response it closes the tcp connection get requests are one kind of http method a client can call they retrieve an existing resource from a server post request create new resources put requests edit an existing resource finally delete requests delete an existing resource let's explore an example of how get requests the most common type of requests are used to help your browser the client access resources on the web suppose you want to check out the latest course offerings from codecademy.com after you type the url into your browser your browser will extract the http part and recognize that it is the name of the network protocol to use then it will take the domain name from the url in this case codecademy.com and ask the internet domain name server to return an internet protocol ip address now the client knows the destination's ip address and then opens a connection to the server at that address using the http protocol as specified it will initiate a get request to the server which contains the ip address of the host and optionally a data payload the get request contains the following text this identifies the type of request the path and the protocol http version 1.1 the second line of the request contains the address of the server which is www.codecademy.com there may be additional lines depending on what data your browser chooses to send if the server is able to locate the path requested the server might send a response back in the response it could have a header http 1.1 that states it is the http 1.1 protocol and it has the status number of 200 and ok meaning there are no issues with the request this header is followed by the content requested which in this case is the information needed to render codecademy.com in this case content type text html meaning it's sending back information in the form of text and html if the server is not able to locate the path requested by the client it will respond with this header which means that the server identifies that it understands the http protocol but the 404 not found status code signifies that the specific piece of content requested was not found this might happen if the content was moved or if you typed in the url path incorrectly or if the page was removed since your http requests can be read by anyone at certain network junctures it might not be a good idea to deliver information such as your credit card or password using this protocol fortunately many servers support https short for http secure which allows you to encrypt data that you send and receive thanks for taking a look at http request with me we were able to cover how tcp allows a client to connect with a server and how http allows us to structure requests and responses we learned about the different types of requests get post put and delete we took a look at http message properties and response headers we saw that a status number of 200 and ok means that there are no issues with the request while a 404 status signifies that a specific piece of content requested was not found finally we saw http secure which allows you to encrypt data that you send and receive for even more information check out our article
Up Next

HTTP Fundamentals: Web Development CS75 Lecture 0 | David Malan
@GeorgeSchott
307.5K views•2013-02-26

BitTorrent Protocol Explained: Piece Selection & Peer Choking
@StevenGordonAU
481 views•2013-02-22

What is REST API? Explain API, REST, and Web API
@Bitfumes
104.5K views•2017-10-30

Enigma Machine Mechanics: WWII Encryption Explained
@JaredOwen
13.2M views•2021-12-11
Related Study Plans & Knowledge Roadmaps
Structured learning paths in Computer Science














![Domine os Métodos HTTP: GET, POST, PUT, PATCH e DELETE [Guia Completo]](https://i.ytimg.com/vi/287AhcajfyU/maxresdefault.jpg)





























