Browser generated information

Browser generated information (http)

Author: WYF
generates an HTTP request message,
first enter the URL, the URL also known as URL, URL can also be the beginning of a number of other characters, such as "ftp:", "file: ", "mailto:" and so, here we access the web server, so we Use http as the beginning to visit. If we visit the FPT server, we need to use "ftp". This is the so-called URL. Different URLs have different usages.
For example, when using the HTTP protocol to access the server
http://user:[email protected]:80/dir/filel.htm/
user represents the user name
password represents the password
www.glasscom.com is the web server domain name
80 is the port number
/ dir/filel.htm\ is the path name of the file,
so we can understand that the URL means to access the file named /dir/filel.htm on the web server www.glasscom.com, which is located in the /dir/ directory The filel.htm file. The
above step is the browser parses the URL,
and some URLs only have the domain name of the web server. For example,
http://www.lab.glasscom.com/
where the URL ends with /, which means He said to visit a directory named "/", and since the file name is omitted, what is the file accessed? ?
Since this setting is different depending on the server, in most cases it is index.html or /dir/default.htm,
so the result is to access files such as index.html or /dir/default.htm

Guess you like

Origin blog.csdn.net/m0_52425873/article/details/112999389