Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

About url

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1.url:URL (Uniform Resoure Locator: uniform Resource Locator) is a string used to describe information resources on Internet, which can help computers locate the resources available on these Web.

The following is a typical example of URL:

Http://localhost:8080/Prj08/index.jsp?username=guokehua

As you can see, URL generally consists of three parts:

Naming mechanism (protocol) for accessing resources: http, in fact, it may also be ftp, etc.

The hostname of the resource: localhost:8080

The name of the resource itself, represented by the path: / Prj08/index.jsp

Other information, such as query string:? username=guokehua.

2.URL classification:

1 > absolute URL

The absolute URL (absolute URL) shows the full path of the file, which means that the location of the absolute URL itself and the actual referenced

The location of the file is independent of

2 > relative URL

Relative to URL (relative URL) describes the location of the target folder based on the location of the folder that contains the URL itself. If the goal

If the tag file is in the same directory as the current page (that is, the page containing URL), then the relative URL of this file is only the file name and extension

If the target file is in a subdirectory of the current directory, its relative URL is the subdirectory name, followed by a slash, followed by the target text

The file name and extension of the part.

If you want to reference a file in a higher-level directory in the file hierarchy, use two periods and a slash. Can be combined and repeated

Use two periods and a slash to reference any file on the hard disk where the current file is located, generally speaking, on the same server

Files, which should always use relative URL, are easier to enter and more convenient to transfer pages from the local system to the server

As long as the relative position of each file remains the same, the link is still valid.

3.url maximum

Microsoft Internet browsers have a maximum uniform Resource Locator (URL) length of 2083 characters.

Internet Explorer also has a maximum path length of 2048 characters.

This restriction applies to POST requests and GET request url.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report