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

The composition of the website

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Components of URL

Scheme: the name of the scheme or protocol, such as http, https, ftp, etc.

Host: hostname, which can be IP or domain name

Port: Port number, which can sometimes be omitted. Browsers and other clients will use the default port number according to scheme. For example, the default port number of HTTP is 80Tech HTTPS. The default port number is 443.

Path: marks the location of the resource. The default is /, starting with "/".

The form of query:key-value, such as https://search.jd.com/Search?keyword=openresty&enc=utf-8&qrst=1

In addition:

# fragment ": an" anchor "or" tag "inside the resource located by URI, and the browser can jump directly to the location indicated by it after obtaining the resource.

Coding problems with URI:

Only ASCII code can be used in URI

URI introduces a coding mechanism to do a special operation on the character set and special characters outside the ASCII code to convert them into a form that does not conflict with the semantics of URI, commonly known as "escape".

For example, spaces are escaped to "% 20", "?" Escaped to "3F"

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

Internet Technology

Wechat

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

12
Report