Get the App
SLTechnology News&Howtos  ›  Network Security  › 

What is the HTTP protocol?

Shulou Source: shulou.com Published: 2022-06-01 01:08:32 10月04日 Update

This article introduces the relevant knowledge of "what is the HTTP protocol". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Brief introduction of HTTP Protocol

HTTP protocol is the abbreviation of Hyper Text Transfer Protocol (Hypertext transfer Protocol). It is a transport protocol used to transfer hypertext from a WWW:World Wide Web server to a local browser. Transfer data (HTML files, picture files, query results, etc.) based on TCP/IP communication protocol.

How HTTP works

The HTTP protocol works on the client-server architecture. As a HTTP client, the browser sends all requests to the HTTP server, the WEB server, through URL.

Web servers include: Apache server, IIS server (Internet Information Services) and so on.

After receiving the request, the Web server sends response information to the client.

The default port number for HTTP is 80, but you can also change it to 8080 or another port.

HTTP message structure

Client request message

The request message that the client sends a HTTP request to the server includes the following format: request line (request line), request header (header), blank line and request data. The following figure shows the general format of the request message.

Server response message

The HTTP response also consists of four parts: the status line, the message header, the blank line, and the response body.

HTTP request method

According to the HTTP standard, HTTP requests can use a variety of request methods.

HTTP1.0 defines three request methods: GET, POST, and HEAD methods.

HTTP1.1 has added five request methods: OPTIONS, PUT, DELETE, TRACE and CONNECT methods.

HTTP response header information

This is the end of the content of "what is the HTTP Protocol". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Service server method client client message individual information content data file more format browser knowledge blank line transmission work browsing utility Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Redmi macOS NVidia Huawei