What is the main function is url

URL is an acronym for Uniform Resource Loctor of

  URL action : can be reached by URL anywhere to find what they need, such as files, databases, image, newsgroups, etc., we can say, URL is the address book on the Internet. Marble platform accuracy class

A complete URL includes: part of the agreement, part of the domain name, the port section, part of the virtual directory, filename component, parameter part, the anchor part

  1. Protocol parts: the protocol part of the URL is "http:", which represents the web page using the HTTP protocol. More may be used in the Internet protocols, such as HTTP, FTP and the like used in this example is the HTTP protocol. In the "HTTP" behind "//" is a delimiter

  2. The domain name parts: the part of the URL of the domain name "www.aspxfans.com". A URL, or you can use the IP address as the domain name

  Part 3. Port: following the domain name is to use between the ports, the domain name and port ":" as the delimiter. Port is not a mandatory part of the URL, if you omit part of the port, the default port

  4. Virtual directory section: from the first domain name after "/" beginning to the last "/" so far, is the virtual directory section. Virtual directory is not a necessary part of the URL. In this example the virtual directory is "/ news /"

  The file name part: from the last name after "/" beginning to date, is part of the file name, if not, is the last of a domain name after "/" to start "#" so far "?" "?" , is part of the file, if there is no "?" and "#", then the domain name from the last "/" start to finish, it is part of the file name. In this case the file name is "index.asp". Part of the file name is not a necessary part of the URL, if you omit this part, the default file name

  7. Parameters section: from the beginning to the part of the argument between the part until the "#", also known as part of the search query part "?." Parameters of this embodiment is "boardID = 5 & ID = 24618 & page = 1". Parameter to allow a plurality of parameters, with the parameters between the parameter and the "&" as the delimiter.

  8. The anchor portions: the HTTP request does not include an anchor portion, from the "#" beginning to end, are anchor portions. Anchor of this embodiment is "r_70732423". Anchor part of the URL must not be a part of.

  Anchor role: Scroll to the anchor position when the user opens the page. Such as: a html page has a section of code, the hash of the url r_70732423

1

<div name='r_70732423'>...</div>

  Scroll to the name = 'r_70732423' open above url, user page

These are the main features of what url details,

Guess you like

Origin www.cnblogs.com/furuihua/p/12083415.html