HTTP, htpp ://

Source: Internet
Author: User

HTTP, htpp ://

From: http://www.cnblogs.com/ranyonsue/p/5984001.html

HTTP URL

HTTP uses the Uniform Resource Identifier (URI) to transmit data and establish a connection. A URL is a special type of URI that contains sufficient information for searching a resource.

The URL, full name: UniformResourceLocator. The Chinese name is the unified Resource Locator. It is the address used to identify a resource on the Internet. The following URL is used as an example to describe the components of a common URL:

Http://www.aspxfans.com: 8080/news/index. asp? BoardID = 5 & ID = 24618 & page = 1 # name

From the above URL, we can see that a complete URL includes the following parts:
1. Protocol part: the Protocol Part of the URL is "http:", which indicates that the webpage uses the HTTP protocol. You can use multiple protocols in the Internet, such as HTTP and FTP. In this example, HTTP is used. The separator "//" after "HTTP"

2. domain name part: the domain name part of the URL is "www.aspxfans.com ". The IP address can also be used as the domain name in a URL.

3. Port: the port is followed by the domain name, and ":" is used as the separator between the domain name and the port. The port is not a required part of a URL. If the port part is omitted, the default port is used.

4. virtual directory part: starting from the first "/" after the domain name to the last "/", it is the virtual directory part. A virtual directory is not a required part of a URL. In this example, the virtual directory is "/news /"

5. File Name: Start from the last "/" after the domain name to "?" Is the file name section. If there is no "?", It starts from the last "/" after the domain name to "#". It is part of the file. If there is no "?" And "#", from the last "/" after the domain name to the end, are part of the file name. In this example, the file name is "index. asp ". The file name is not a required part of a URL. If this part is omitted, the default file name is used.

6. The Anchor part is the anchor part from "#" to the end. In this example, the anchor part is "name ". The anchor part is not a required part of a URL.

7. Parameter section: From "?" The part between the start and the end of "#" is the parameter part, also known as the search part and the query part. In this example, the parameter section is "boardID = 5 & ID = 24618 & page = 1 ". Parameters can have multiple parameters, and "&" is used as the separator between parameters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.