The composition of a URL

Source: Internet
Author: User
Tags gopher server hosting

The composition of the URL
The URL consists of three parts: the protocol type, the hostname and path, and the file name.   There are several main types of URLs that you can specify: HTTP, FTP, Gopher, Telnet, file, and so on. The composition of the URL
The composition of the URL
Agreement
1. Protocol (Protocol): Specifies the transport protocol used, and the following table lists the valid scheme names for the Protocol property. The most commonly used is the HTTP protocol, which is currently the most widely used protocol in www.
File resources are files on the local computer. Format file:///
FTP accesses resources through FTP. Format ftp://
Gopher accesses the resource through the Gopher protocol.
HTTP accesses the resource over HTTP. Format/HTTP/
HTTPS accesses the resource through secure HTTPS. Format https://
The mailto resource is an e-mail address that is accessed through SMTP. Format mailto:
MMS plays the resource by supporting the MMS (streaming) protocol. (on behalf of the software: Windows Media Player) format mms://ed2k access to the resource through peer-to-peer software that supports the ed2k (dedicated download link) protocol. (Representative software: Electric Donkey) format ed2k://
The composition of the URL
The composition and response of the URL
FlashGet access to this resource through peer-to software that supports FlashGet: (dedicated download link) protocol. (on behalf of the Software: Express) format flashget://
Thunder access to this resource through peer-to software that supports the Thunder (dedicated download link) protocol. (Representative software: Thunderbolt) format thunder://
News accesses the resource through NNTP.
Tencent by supporting Tencent (dedicated chat connection) protocol and user conversations. (on behalf of the software: QQ, TM) format tencent://message/?uin= number &site=&menu=yes Msnim by supporting Msnim (dedicated chat connection) protocol and user conversations. (on behalf of software: MSN, WLM) format msnim:chat?contact= e-mail address
Host Name
2. Hostname (hostname): Refers to the domain Name System (DNS) hostname or IP address of the server hosting the resource. Sometimes, you can also include the user name and password (format: Username:password) that you need to connect to the server before the host name.
Port number
The composition of the URL
The run of the URL
3, port (port number): integer, optional, omit when using the default port of the scheme, the various transport protocols have a default port number, such as the default ports for HTTP 80. If omitted when entered, the default port number is used. Sometimes for security or other reasons, the port can be redefined on the server, that is, the non-standard port number, at this time, the URL can not omit the port number of this item.
Path
4, Path: A string separated by 0 or more "/" symbols, typically used to represent a directory or file address on a host.
Parameters
5.;p arameters (Parameters): This is an optional option for specifying special parameters.
Inquire
6. Query: Optional, for dynamic Web pages (such as using CGI, ISAPI, php/jsp/asp/asp. NET and other technical Web pages) pass parameters, can have multiple parameters, separated by the "&" symbol, the name and value of each parameter is separated by the "=" symbol.
Fragment
7, fragment, information fragment, string, used to specify the fragment in the network resource.  For example, there are multiple noun interpretations in a Web page, and you can use fragment to navigate directly to a noun interpretation. Note that Windows hosts do not differentiate between URL case, but Unix/linux hosts are case-sensitive.
URL Locator Identification Description
The following list is a common URL for locating and identifying services or files:
http: File on the Web server.
File: Files on your own local system or on an anonymous server
ftp: File on the FTP server
Gopher: File on Gopher server
WAIS: File on WAIS server
News: The file is on a Usenet server

Telnet: Connect to a server that supports Telnet telnet




The composition of a URL

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.