|
|
Please explain about the URL:
19 responses total.
This response has been erased.
A URL is made up of several parts. The first part is the protocol. Let's take a look at Grex's homepage URL - http://www.cyberspace.org/ the http: portion is the protocol. There are many other protocols besides http, but it is now the most common by far, so that modern browsers all supply it if you leave it out. However, if a URL is given in a document as a link without a protocol portion, the protocol is construed to be the same as that used to access the document itself. Other protocols you may have heard of are ftp: and mailto: , but there are quite a few others, too. The //www.cyberspace.org/ portion is the host name portion of the URL. It identifies the machine whcih contains the document that the URL refers to. It must be looked up in DNS server unless it is given in its numeric form. Numeric host IP addresses will work but are not recommended, because they can change unexpectedly, rendering your URL useless. If the host name is not given in a link, the hostname of the host containing the pointer is supplied. This is the best way to create links internal to a website, as the whole site can then be moved to another host without having to edit all of its embedded URLS. There is no more after that in the URL above, but URLS may contain (optionally) two further portions. The first is the path of the document in the directory tree of the server. This portion looks like /foo/bar/baz/filename.html If a URL is specified with no host and a path that doesn't start with a slash, the path is taken relative to the directory containing the document in which the pointer appears. The second portion is an argument. It is delimited by a ? and signifies that all that follows is an argument to be passed to the named document. The named docuemnt in this case is usually a program, and not a static page. You can easily see these in a backtalk URL, for example.
> ... Numeric host IP addresses will work but are not > recommended, because they can change unexpectedly, rendering your URL > useless. Heh. Of course, that *never* happens with non-numeric IP addresses ...
URL's can also contain a # character, for tags.
Although if memory serves, the result is called a "URL fragment".
This response has been erased.
It happens less often with fully qualified domain names instead of IP addresses. If a domain name points at the wrong place, it's most likely a screwup, which will hopefully be fixed quickly if the person running the site cares, whereas IP addresses tend to change intentionally. Also, a nitpick to Valerie's nitpick: mailto: is part of html, not http. http is a protocol used for transferring data, and doesn't particularly care what's in the data.
And here is a nitpick to Steve's nitpick to Valerie's nitpick: mailto: is part of the URL syntax as defined in RFC 1738. This is independent of both HTML and HTTP, although it is used in HTML (and in other standards as well).
(I love watching the gurus nitpick...its like watching chimpanses.....)
<runs and hides until it is over>
(And keep in mind that chimps are both meat-eating predators & canibals)
What I had in mind was their picking nits off each others' heads.
Actually, strictly speaking, mailto isn't limited to being part of the HTML protocol either -- it's a URL type, one of those allowed by many versions of HTML, but when you get down to it, as far as HTML is concenered, it's just a protocol, not part of the markup. It's Certainly not part of HTTP, though; an entirely different protocol.
Isn't that exactly what I said in #8?
More or less.
Not really a nit, but more of a clarification of John's nitpick to
Steve's nitpick to Valerie's nitpick. While RFC 1738 first defined the
mailto URL, proposed standard RFC 2368 is the most recent rendition of
the mailto URL and looks to make it into full RFC status relatively
shortly.
RFC 2368:
Title: The mailto URL scheme
Author(s): P. Hoffman, L. Masinter, J. Zawinski
Status: Proposed Standard
Date: July 1998
Mailbox: phoffman@imc.org, masinter@parc.xerox.com,
jwz@netscape.com
Pages: 10
Characters: 16502
Updates: 1738, 1808
URL: ftp://ftp.isi.edu/in-notes/rfc2368.txt
Of course, maybe this is more then you needed to know...
Thanks for the clarification. I just can't seem to keep up with all these RFC's...
be sure to check out the rfc-index
I am not much sure , but I think that if "mailto" would not have been a protocol then one would not have been able to use "://" directive after "mailto"
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss