django-URL awareness

URL consists of three parts: the type of resources, storage resources of the host domain name, the resource file name. It may also be considered consists of four parts: the protocol, host, port, path

URL syntax is generally :( square brackets [] is optional):
protocol :// hostname[:port] / path / [;parameters][?query]#fragment
(. 1) protocol (Protocol): specified transport protocol used, the table lists the name of the program valid protocol attribute. The most common is the HTTP protocol .
(2) hostname (hostname): refers to the storage resources of the server's domain name system (DNS) host name or IP address.
(3) port (port number): integer, alternatively, use the default port, various aspects will be omitted when transmission protocol has a default port number, such as http default port 80.
(4) path (path): zero or more by a "/" symbol string spaced, generally used to indicate a file or directory on the host address.
(5) parameters (parameter): This parameter is used to specify special options.
(6) query (query): Alternatively, for a dynamic web page (e.g., using technology to produce CGI, ISAPI, PHP / JSP / ASP / ASP.NET pages, etc.) to pass parameters, there may be multiple parameters, with the "& "symbol spaced, each parameter name and value of" spaced = "symbol.
(7) fragment (pieces of information): string that specifies the network resources fragments. A plurality of pages, for example, noun, targeting fragment can be used directly to a noun.
To Baidu search, for example:

Guess you like

Origin www.cnblogs.com/xiximayou/p/11726337.html