Composition URL

Part of the URL


image.png


scheme: program name or protocol name, such as http, https, ftp, etc.

host: host name, can be IP, or domain name

port: port number, and sometimes can be omitted, browser and other clients based scheme uses the default port number, such as HTTP default port number is 80, HTTPS default port number is 443.

path: The default is / to "/" at the beginning

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


In addition:

Guess you like

Origin blog.51cto.com/11009785/2448630
URL
URL
URL
URL