HTTP - Hyper Text Transfer Protocol
- HTTP is responsible for handling communication between Clients & Servers and initiates the request/response cycle.
- HTTP is stateless, every request is independent of one another and not reliant on the previous transaction. (Tools like cookies and local storage can help to deal with this).
Hyper Text Transfer Protocol Secure
- Data is sent via SSL or TLS for example. (You can add a SSL certificate to your web host). Which helps when dealing with sensitive info and require a higher level of security such as card payments or users personal data. Many websites will now use https exclusively for an extra layer of security.
GET : Retrieves data from the server (load pages and assets etc). Every time you visit a web page you are making a get request.
POST : Submits data to the server, adding resources, submit forms, comments etc. Usually to be stored in a database somewhere.
PUT : Updates data on the server
DELETE : Removes data from the server
- Your HTTP requests will return HTTP Status Codes
Using the browser’s inspector to review requests
- Use the
Networktabin the inspector. Make requests and inspector will show you what they are (and any apparent errors).
Headers, will show you the HTTP Header Fields
- Narrow it down by files, requests, responses etc.