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--
This article mainly explains how URL is formed. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how URL is made up.
The composition of URL
URL follows a standard syntax, which consists of six parts: protocol, hostname, domain name, port, path, and file name, where ports can be omitted. The detailed syntax rules are as follows:
Scheme://host.domain:port/path/filename
Scheme represents the protocol, host represents the hostname, domain represents the domain name, port represents the port (which can be omitted), path represents the path to the file, and filename represents the file name.
What is an agreement?
The protocol is used to indicate the type of communication between the client and server. There are four protocols we often use: http, https, ftp, and file.
The protocol uses the scenario http (HyperText Transfer Protocol) hypertext transfer protocol. The http protocol can transfer data encoded as hypertext from one computer to another without encryption. Https (HyperText Transfer Protocol over SecureSocket Layer) secure Hypertext transfer Protocol. Security-targeted http channels, secure web pages, encrypt all information exchange. Ftp (File Transfer Protocol) File transfer Protocol. File files on the local computer.
Hostnam
The hostname can provide the browser with the name of the file site. Www is our common hostname.
domain name
The domain name is used together with the host name to define the address of the server. Web servers follow the Digital Internet Protocol (Internet Protocol,IP), and every computer connected to the Internet has a fixed IP address. The domain name is the alias of the IP address, because the general IP address is a long string of numbers, in order to facilitate memory, use the domain name instead. In short, we can't surf the Internet without a domain name (IP).
Port
The port is used to define the port number on the host. If you don't write it, the default port number for http is 80Magnehttps, and the default port number for 443 Powerftp is 21.
Path
The path specifies the location of the file on the server. Just like the folder we specify when we save files on our computer, files on the Web server may also be stored in subdirectories (that is, subfolders within the folder). If so, the adjacent folders in the path need to be separated by a slash (/).
File name
The file name is used to define the name of the document or resource. Similar to the path, the path refers to the folder, while it refers to the files in the folder. There are many suffixes for web files, such as .html, .php, .jsp, .asp, and so on.
At this point, I believe you have a deeper understanding of "how URL is formed". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.