In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what is the use of the hypertext transfer protocol HTTP, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Hypertext transfer Protocol (HTTP,HyperText Transfer Protocol) is the most widely used network protocol on the Internet. All WWW files must comply with this standard. HTTP was originally designed to provide a way to publish and receive HTML pages.
In 1960, American Ted Nelson conceived a method of processing text information by computer, and called it hypertext, which became the foundation of the development of the standard architecture of HTTP hypertext transfer protocol.
Ted Nelson organizes and coordinates the collaborative research of the World wide Web Association (World Wide Web Consortium) and the Internet Engineering working Group (Internet Engineering Task Force), resulting in the release of a series of RFC, of which the famous RFC 2616 defines HTTP 1.1.
HTTP is a standard (TCP) for client-side and server-side requests and responses. The client is the end user and the server is the website. By using a Web browser, web crawler, or other tool, the client initiates an HTTP request to the designated port on the server (the default port is 80).
(we call this client) is called user agent (user agent). Resources, such as HTML files and images, are stored on the answering server. This answer server is the source server (origin server).
There may be multiple intermediate layers between the user agent and the source server, such as proxies, gateways, or tunnels. Although the TCP/IP protocol is the most popular application on the Internet, the HTTP protocol does not stipulate that it must be used and the layers it supports.
In fact, HTTP can be implemented on any other Internet protocol, or on any other network. HTTP only assumes reliable transmission (provided by its underlying protocols), and any protocol that can provide such a guarantee can be used by it.
Typically, the HTTP client initiates a request to establish an TCP connection to the server's designated port (the default is port 80). The HTTP server listens for requests sent by the client on that port. Once a request is received, the server sends back a status line, such as "HTTP/1.1 200 OK", and (responding) a message, which may be the requested file, error message, or other information. The reason HTTP uses TCP instead of UDP is that a web page must transmit a lot of data, while the TCP protocol provides transmission control, sequential organization of data, and error correction.
Resources requested through the HTTP or HTTPS protocol are identified by the uniform Resource Identifier (Uniform Resource Identifiers) (or, more accurately, URLs).
HTTP (HyperText Transport Protocol) is the abbreviation of Hypertext transfer Protocol, which is used to transmit data in WWW mode. For more information about HTTP protocol, please refer to RFC2616. The HTTP protocol adopts the request / response model. The client sends a request to the server, and the request header contains the requested method, URL, protocol version, and a MIME-like message structure containing request modifiers, customer information, and content. The server responds with a status line, including the version of the message protocol, success or error coding, plus server information, entity meta-information, and possible entity content.
HTTP messages usually include a request message from the client to the server and a response message from the server to the client. These two types of messages consist of a starting line, one or more header fields, a blank line indicating the end of the header field, and an optional message body. The header domain of HTTP consists of universal header, request header, response header and entity header. Each header field consists of a domain name, a colon (:), and a domain value. The domain name is case-independent, any number of spaces can be added before the field value, and the header field can be expanded to multiple lines, using at least one space or tab at the beginning of each line.
There are many request methods (all methods are in uppercase), and each method is explained as follows:
GET requests to get the resource identified by Request-URI
POST appends new data to the resource identified by Request-URI
HEAD request to get the response message header of the resource identified by Request-URI
PUT requests the server to store a resource and use Request-URI as its identity
DELETE requests the server to delete the resource identified by Request-URI
TRACE requests the server to send back the received request information, mainly for testing or diagnosis
CONNECT is reserved for future use
OPTIONS requests to query server performance, or query resource-related options and requirements
The above is all the content of the article "what is the use of Hypertext transfer Protocol HTTP". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.