What is HTTP?
HTTP – Stands for Hypertext Transfer Protocol. HTTP is the protocol used by the world wide web to define how data is formatted and transmitted, and what actions web browsers and web servers should take to respond to a command. When you enter a website into your web browser and press enter, this sends an HTTP command to a web server, which tells the server to fetch and send the data for that website to your browser.
Hypertext Transfer Protocol uses a server-client model. A client, for example, maybe a home computer, laptop, or mobile device. The Hypertext Transfer Protocol server is typically a web host running web server software, such as Apache or IIS. When you access a website, your browser sends a request to the corresponding web server and it responds with a hypertext Transfer Protocoltatus code. If the URL is valid and the connection is granted, the server will send your browser the webpage and related files.
Common HTTP status codes include:
- 200– successful request (the webpage exists)
- 301– moved permanently (often forwarded to a new URL)
- 401– unauthorized request (authorization required)
- 403– forbidden (access is not allowed to the page or directory)
- 500– internal server error (often caused by an incorrect server configuration)
Hypertext Transfer Protocol also defines commands such as GET and POST, which are used to handle form submissions on websites. The CONNECT command is used to facilitate a secure connection that is encrypted using SSL. Encrypted Hypertext Transfer Protocol connections take place over HTTPS, an extension of HTTP designed for secure data transmissions.
NOTE: URLs that begin with “https://” are accessed over the standard hypertext transfer protocol and use port 80 by default. URLs that start with “https://” are accessed over a secure HTTPS connection and often use port 443.