Home>Article> What three parts does a standard URL consist of?

What three parts does a standard URL consist of?

青灯夜游
青灯夜游 Original
2021-09-23 17:15:27 30135browse

The standard URL consists of three parts: "Protocol", "Host Name", and "Path and File Name". "Protocol" refers to the transmission protocol used, such as "HTTP" or "HTTPS"; "Host name" refers to the domain name system host name or IP address of the server where the resource is stored; "Path and file name" refers to a The specific address of the directory or file.

What three parts does a standard URL consist of?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

URL generally refers to the uniform resource locator, which is a representation method used to specify the location of information on the Internet's World Wide Web service program.

On the WWW, every information resource has a unified and unique address on the Internet. This address is called a URL. It is the unified resource positioning mark of the WWW, which refers to the network address.

Generally, a standard URL consists of three parts: protocol, host name, path and file name.

protocol

Specifies the transport protocol to use. The following table lists the valid scheme names for the protocol attribute. The most commonly used protocol is HTTP, which is also the most widely used protocol in the WWW.

file resources are files on the local computer. Format file:///, note that there should be three slashes after it.

ftp Access resources via FTP. Format FTP://

gopher Access this resource through the Gopher protocol.

http Access this resource via HTTP. Format HTTP://

https Access this resource via secure HTTPS. Format HTTPS://

mailto The resource is an email address, accessed via SMTP. Format mailto:

MMS By supporting the MMS (streaming media) protocol to play this resource. (Representative software: Windows Media Player) Format MMS://

ed2k Access this resource through P2P software that supports the ed2k (dedicated download link) protocol. (Representative software: eDonkey) Format ed2k://

Flashget Access this resource through P2P software that supports the Flashget: (dedicated download link) protocol. (Representative software: Express) Format Flashget://

thunder Access this resource through P2P software that supports the thunder (dedicated download link) protocol. (Representative software: Thunder) Format thunder://

news Access this resource through NNTP.

hostname

is the Domain Name System (DNS) hostname or IP address of the server where the resource is stored. Sometimes, the hostname can also be preceded by the username and password required to connect to the server (format: username:password@hostname).

path (path)

A string separated by zero or more "/" symbols, generally used to represent a directory or file address on the host.

For more related knowledge, please visit theFAQcolumn!

The above is the detailed content of What three parts does a standard URL consist of?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn