]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man7/uri.7
Revert "src.mk, All pages: Move man* to man/"
[thirdparty/man-pages.git] / man7 / uri.7
1 .\" (C) Copyright 1999-2000 David A. Wheeler (dwheeler@dwheeler.com)
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .\" Fragments of this document are directly derived from IETF standards.
6 .\" For those fragments which are directly derived from such standards,
7 .\" the following notice applies, which is the standard copyright and
8 .\" rights announcement of The Internet Society:
9 .\"
10 .\" Copyright (C) The Internet Society (1998). All Rights Reserved.
11 .\" This document and translations of it may be copied and furnished to
12 .\" others, and derivative works that comment on or otherwise explain it
13 .\" or assist in its implementation may be prepared, copied, published
14 .\" and distributed, in whole or in part, without restriction of any
15 .\" kind, provided that the above copyright notice and this paragraph are
16 .\" included on all such copies and derivative works. However, this
17 .\" document itself may not be modified in any way, such as by removing
18 .\" the copyright notice or references to the Internet Society or other
19 .\" Internet organizations, except as needed for the purpose of
20 .\" developing Internet standards in which case the procedures for
21 .\" copyrights defined in the Internet Standards process must be
22 .\" followed, or as required to translate it into languages other than English.
23 .\"
24 .\" Modified Fri Jul 25 23:00:00 1999 by David A. Wheeler (dwheeler@dwheeler.com)
25 .\" Modified Fri Aug 21 23:00:00 1999 by David A. Wheeler (dwheeler@dwheeler.com)
26 .\" Modified Tue Mar 14 2000 by David A. Wheeler (dwheeler@dwheeler.com)
27 .\"
28 .TH URI 7 2021-03-22 "Linux man-pages (unreleased)"
29 .SH NAME
30 uri, url, urn \- uniform resource identifier (URI), including a URL or URN
31 .SH SYNOPSIS
32 .nf
33 .HP 0.2i
34 URI = [ absoluteURI | relativeURI ] [ "#" fragment ]
35 .HP
36 absoluteURI = scheme ":" ( hierarchical_part | opaque_part )
37 .HP
38 relativeURI = ( net_path | absolute_path | relative_path ) [ "?" query ]
39 .HP
40 scheme = "http" | "ftp" | "gopher" | "mailto" | "news" | "telnet" |
41 "file" | "man" | "info" | "whatis" | "ldap" | "wais" | \&...
42 .HP
43 hierarchical_part = ( net_path | absolute_path ) [ "?" query ]
44 .HP
45 net_path = "//" authority [ absolute_path ]
46 .HP
47 absolute_path = "/" path_segments
48 .HP
49 relative_path = relative_segment [ absolute_path ]
50 .fi
51 .SH DESCRIPTION
52 A Uniform Resource Identifier (URI) is a short string of characters
53 identifying an abstract or physical resource (for example, a web page).
54 A Uniform Resource Locator (URL) is a URI
55 that identifies a resource through its primary access
56 mechanism (e.g., its network "location"), rather than
57 by name or some other attribute of that resource.
58 A Uniform Resource Name (URN) is a URI
59 that must remain globally unique and persistent even when
60 the resource ceases to exist or becomes unavailable.
61 .PP
62 URIs are the standard way to name hypertext link destinations
63 for tools such as web browsers.
64 The string "http://www.kernel.org" is a URL (and thus it
65 is also a URI).
66 Many people use the term URL loosely as a synonym for URI
67 (though technically URLs are a subset of URIs).
68 .PP
69 URIs can be absolute or relative.
70 An absolute identifier refers to a resource independent of
71 context, while a relative
72 identifier refers to a resource by describing the difference
73 from the current context.
74 Within a relative path reference, the complete path segments "." and
75 ".." have special meanings: "the current hierarchy level" and "the
76 level above this hierarchy level", respectively, just like they do in
77 UNIX-like systems.
78 A path segment which contains a colon
79 character can't be used as the first segment of a relative URI path
80 (e.g., "this:that"), because it would be mistaken for a scheme name;
81 precede such segments with ./ (e.g., "./this:that").
82 Note that descendants of MS-DOS (e.g., Microsoft Windows) replace
83 devicename colons with the vertical bar ("|") in URIs, so "C:" becomes "C|".
84 .PP
85 A fragment identifier, if included, refers to a particular named portion
86 (fragment) of a resource; text after a \(aq#\(aq identifies the fragment.
87 A URI beginning with \(aq#\(aq refers to that fragment in the current resource.
88 .SS Usage
89 There are many different URI schemes, each with specific
90 additional rules and meanings, but they are intentionally made to be
91 as similar as possible.
92 For example, many URL schemes
93 permit the authority to be the following format, called here an
94 .I ip_server
95 (square brackets show what's optional):
96 .HP
97 .IR "ip_server = " [ user " [ : " password " ] @ ] " host " [ : " port ]
98 .PP
99 This format allows you to optionally insert a username,
100 a user plus password, and/or a port number.
101 The
102 .I host
103 is the name of the host computer, either its name as determined by DNS
104 or an IP address (numbers separated by periods).
105 Thus the URI
106 <http://fred:fredpassword@example.com:8080/>
107 logs into a web server on host example.com
108 as fred (using fredpassword) using port 8080.
109 Avoid including a password in a URI if possible because of the many
110 security risks of having a password written down.
111 If the URL supplies a username but no password, and the remote
112 server requests a password, the program interpreting the URL
113 should request one from the user.
114 .PP
115 Here are some of the most common schemes in use on UNIX-like systems
116 that are understood by many tools.
117 Note that many tools using URIs also have internal schemes or specialized
118 schemes; see those tools' documentation for information on those schemes.
119 .PP
120 .B "http \- Web (HTTP) server"
121 .PP
122 .RI http:// ip_server / path
123 .br
124 .RI http:// ip_server / path ? query
125 .PP
126 This is a URL accessing a web (HTTP) server.
127 The default port is 80.
128 If the path refers to a directory, the web server will choose what
129 to return; usually if there is a file named "index.html" or "index.htm"
130 its content is returned, otherwise, a list of the files in the current
131 directory (with appropriate links) is generated and returned.
132 An example is <http://lwn.net>.
133 .PP
134 A query can be given in the archaic "isindex" format, consisting of a
135 word or phrase and not including an equal sign (=).
136 A query can also be in the longer "GET" format, which has one or more
137 query entries of the form
138 .IR key = value
139 separated by the ampersand character (&).
140 Note that
141 .I key
142 can be repeated more than once, though it's up to the web server
143 and its application programs to determine if there's any meaning to that.
144 There is an unfortunate interaction with HTML/XML/SGML and
145 the GET query format; when such URIs with more than one key
146 are embedded in SGML/XML documents (including HTML), the ampersand
147 (&) has to be rewritten as &amp;.
148 Note that not all queries use this format; larger forms
149 may be too long to store as a URI, so they use a different
150 interaction mechanism (called POST) which does
151 not include the data in the URI.
152 See the Common Gateway Interface specification at
153 .UR http://www.w3.org\:/CGI
154 .UE
155 for more information.
156 .PP
157 .B "ftp \- File Transfer Protocol (FTP)"
158 .PP
159 .RI ftp:// ip_server / path
160 .PP
161 This is a URL accessing a file through the file transfer protocol (FTP).
162 The default port (for control) is 21.
163 If no username is included, the username "anonymous" is supplied, and
164 in that case many clients provide as the password the requestor's
165 Internet email address.
166 An example is
167 <ftp://ftp.is.co.za/rfc/rfc1808.txt>.
168 .PP
169 .B "gopher \- Gopher server"
170 .PP
171 .RI gopher:// ip_server / "gophertype selector"
172 .br
173 .RI gopher:// ip_server / "gophertype selector" %09 search
174 .br
175 .RI gopher:// ip_server / "gophertype selector" %09 search %09 gopher+_string
176 .br
177 .PP
178 The default gopher port is 70.
179 .I gophertype
180 is a single-character field to denote the
181 Gopher type of the resource to
182 which the URL refers.
183 The entire path may also be empty, in
184 which case the delimiting "/" is also optional and the gophertype
185 defaults to "1".
186 .PP
187 .I selector
188 is the Gopher selector string.
189 In the Gopher protocol,
190 Gopher selector strings are a sequence of octets which may contain
191 any octets except 09 hexadecimal (US-ASCII HT or tab), 0A hexadecimal
192 (US-ASCII character LF), and 0D (US-ASCII character CR).
193 .PP
194 .B "mailto \- Email address"
195 .PP
196 .RI mailto: email-address
197 .PP
198 This is an email address, usually of the form
199 .IR name @ hostname .
200 See
201 .BR mailaddr (7)
202 for more information on the correct format of an email address.
203 Note that any % character must be rewritten as %25.
204 An example is <mailto:dwheeler@dwheeler.com>.
205 .PP
206 .B "news \- Newsgroup or News message"
207 .PP
208 .RI news: newsgroup-name
209 .br
210 .RI news: message-id
211 .PP
212 A
213 .I newsgroup-name
214 is a period-delimited hierarchical name, such as
215 "comp.infosystems.www.misc".
216 If <newsgroup-name> is "*" (as in <news:*>), it is used to refer
217 to "all available news groups".
218 An example is <news:comp.lang.ada>.
219 .PP
220 A
221 .I message-id
222 corresponds to the Message-ID of
223 .UR http://www.ietf.org\:/rfc\:/rfc1036.txt
224 IETF RFC\ 1036,
225 .UE
226 without the enclosing "<"
227 and ">"; it takes the form
228 .IR unique @ full_domain_name .
229 A message identifier may be distinguished from a news group name by the
230 presence of the "@" character.
231 .PP
232 .B "telnet \- Telnet login"
233 .PP
234 .RI telnet:// ip_server /
235 .PP
236 The Telnet URL scheme is used to designate interactive text services that
237 may be accessed by the Telnet protocol.
238 The final "/" character may be omitted.
239 The default port is 23.
240 An example is <telnet://melvyl.ucop.edu/>.
241 .PP
242 .B "file \- Normal file"
243 .PP
244 .RI file:// ip_server / path_segments
245 .br
246 .RI file: path_segments
247 .PP
248 This represents a file or directory accessible locally.
249 As a special case,
250 .I ip_server
251 can be the string "localhost" or the empty
252 string; this is interpreted as "the machine from which the URL is
253 being interpreted".
254 If the path is to a directory, the viewer should display the
255 directory's contents with links to each containee;
256 not all viewers currently do this.
257 KDE supports generated files through the URL <file:/cgi-bin>.
258 If the given file isn't found, browser writers may want to try to expand
259 the filename via filename globbing
260 (see
261 .BR glob (7)
262 and
263 .BR glob (3)).
264 .PP
265 The second format (e.g., <file:/etc/passwd>)
266 is a correct format for referring to
267 a local file.
268 However, older standards did not permit this format,
269 and some programs don't recognize this as a URI.
270 A more portable syntax is to use an empty string as the server name,
271 for example,
272 <file:///etc/passwd>; this form does the same thing
273 and is easily recognized by pattern matchers and older programs as a URI.
274 Note that if you really mean to say "start from the current location", don't
275 specify the scheme at all; use a relative address like <../test.txt>,
276 which has the side-effect of being scheme-independent.
277 An example of this scheme is <file:///etc/passwd>.
278 .PP
279 .B "man \- Man page documentation"
280 .PP
281 .RI man: command-name
282 .br
283 .RI man: command-name ( section )
284 .PP
285 This refers to local online manual (man) reference pages.
286 The command name can optionally be followed by a
287 parenthesis and section number; see
288 .BR man (7)
289 for more information on the meaning of the section numbers.
290 This URI scheme is unique to UNIX-like systems (such as Linux)
291 and is not currently registered by the IETF.
292 An example is <man:ls(1)>.
293 .PP
294 .B "info \- Info page documentation"
295 .PP
296 .RI info: virtual-filename
297 .br
298 .RI info: virtual-filename # nodename
299 .br
300 .RI info:( virtual-filename )
301 .br
302 .RI info:( virtual-filename ) nodename
303 .PP
304 This scheme refers to online info reference pages (generated from
305 texinfo files),
306 a documentation format used by programs such as the GNU tools.
307 This URI scheme is unique to UNIX-like systems (such as Linux)
308 and is not currently registered by the IETF.
309 As of this writing, GNOME and KDE differ in their URI syntax
310 and do not accept the other's syntax.
311 The first two formats are the GNOME format; in nodenames all spaces
312 are written as underscores.
313 The second two formats are the KDE format;
314 spaces in nodenames must be written as spaces, even though this
315 is forbidden by the URI standards.
316 It's hoped that in the future most tools will understand all of these
317 formats and will always accept underscores for spaces in nodenames.
318 In both GNOME and KDE, if the form without the nodename is used the
319 nodename is assumed to be "Top".
320 Examples of the GNOME format are <info:gcc> and <info:gcc#G++_and_GCC>.
321 Examples of the KDE format are <info:(gcc)> and <info:(gcc)G++ and GCC>.
322 .PP
323 .B "whatis \- Documentation search"
324 .PP
325 .RI whatis: string
326 .PP
327 This scheme searches the database of short (one-line) descriptions of
328 commands and returns a list of descriptions containing that string.
329 Only complete word matches are returned.
330 See
331 .BR whatis (1).
332 This URI scheme is unique to UNIX-like systems (such as Linux)
333 and is not currently registered by the IETF.
334 .PP
335 .B "ghelp \- GNOME help documentation"
336 .PP
337 .RI ghelp: name-of-application
338 .PP
339 This loads GNOME help for the given application.
340 Note that not much documentation currently exists in this format.
341 .PP
342 .B "ldap \- Lightweight Directory Access Protocol"
343 .PP
344 .RI ldap:// hostport
345 .br
346 .RI ldap:// hostport /
347 .br
348 .RI ldap:// hostport / dn
349 .br
350 .RI ldap:// hostport / dn ? attributes
351 .br
352 .RI ldap:// hostport / dn ? attributes ? scope
353 .br
354 .RI ldap:// hostport / dn ? attributes ? scope ? filter
355 .br
356 .RI ldap:// hostport / dn ? attributes ? scope ? filter ? extensions
357 .PP
358 This scheme supports queries to the
359 Lightweight Directory Access Protocol (LDAP), a protocol for querying
360 a set of servers for hierarchically organized information
361 (such as people and computing resources).
362 See
363 .UR http://www.ietf.org\:/rfc\:/rfc2255.txt
364 RFC\ 2255
365 .UE
366 for more information on the LDAP URL scheme.
367 The components of this URL are:
368 .IP hostport 12
369 the LDAP server to query, written as a hostname optionally followed by
370 a colon and the port number.
371 The default LDAP port is TCP port 389.
372 If empty, the client determines which the LDAP server to use.
373 .IP dn
374 the LDAP Distinguished Name, which identifies
375 the base object of the LDAP search (see
376 .UR http://www.ietf.org\:/rfc\:/rfc2253.txt
377 RFC\ 2253
378 .UE
379 section 3).
380 .IP attributes
381 a comma-separated list of attributes to be returned;
382 see RFC\ 2251 section 4.1.5.
383 If omitted, all attributes should be returned.
384 .IP scope
385 specifies the scope of the search, which can be one of
386 "base" (for a base object search), "one" (for a one-level search),
387 or "sub" (for a subtree search).
388 If scope is omitted, "base" is assumed.
389 .IP filter
390 specifies the search filter (subset of entries
391 to return).
392 If omitted, all entries should be returned.
393 See
394 .UR http://www.ietf.org\:/rfc\:/rfc2254.txt
395 RFC\ 2254
396 .UE
397 section 4.
398 .IP extensions
399 a comma-separated list of type=value
400 pairs, where the =value portion may be omitted for options not
401 requiring it.
402 An extension prefixed with a \(aq!\(aq is critical
403 (must be supported to be valid), otherwise it is noncritical (optional).
404 .PP
405 LDAP queries are easiest to explain by example.
406 Here's a query that asks ldap.itd.umich.edu for information about
407 the University of Michigan in the U.S.:
408 .PP
409 .nf
410 ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US
411 .fi
412 .PP
413 To just get its postal address attribute, request:
414 .PP
415 .nf
416 ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US?postalAddress
417 .fi
418 .PP
419 To ask a host.com at port 6666 for information about the person
420 with common name (cn) "Babs Jensen" at University of Michigan, request:
421 .PP
422 .nf
423 ldap://host.com:6666/o=University%20of%20Michigan,c=US??sub?(cn=Babs%20Jensen)
424 .fi
425 .PP
426 .B "wais \- Wide Area Information Servers"
427 .PP
428 .RI wais:// hostport / database
429 .br
430 .RI wais:// hostport / database ? search
431 .br
432 .RI wais:// hostport / database / wtype / wpath
433 .PP
434 This scheme designates a WAIS database, search, or document
435 (see
436 .UR http://www.ietf.org\:/rfc\:/rfc1625.txt
437 IETF RFC\ 1625
438 .UE
439 for more information on WAIS).
440 Hostport is the hostname, optionally followed by a colon and port number
441 (the default port number is 210).
442 .PP
443 The first form designates a WAIS database for searching.
444 The second form designates a particular search of the WAIS database
445 .IR database .
446 The third form designates a particular document within a WAIS
447 database to be retrieved.
448 .I wtype
449 is the WAIS designation of the type of the object and
450 .I wpath
451 is the WAIS document-id.
452 .PP
453 .B "other schemes"
454 .PP
455 There are many other URI schemes.
456 Most tools that accept URIs support a set of internal URIs
457 (e.g., Mozilla has the about: scheme for internal information,
458 and the GNOME help browser has the toc: scheme for various starting
459 locations).
460 There are many schemes that have been defined but are not as widely
461 used at the current time
462 (e.g., prospero).
463 The nntp: scheme is deprecated in favor of the news: scheme.
464 URNs are to be supported by the urn: scheme, with a hierarchical name space
465 (e.g., urn:ietf:... would identify IETF documents); at this time
466 URNs are not widely implemented.
467 Not all tools support all schemes.
468 .SS Character encoding
469 URIs use a limited number of characters so that they can be
470 typed in and used in a variety of situations.
471 .PP
472 The following characters are reserved, that is, they may appear in a
473 URI but their use is limited to their reserved purpose
474 (conflicting data must be escaped before forming the URI):
475 .IP
476 .in +4n
477 .EX
478 ; / ? : @ & = + $ ,
479 .EE
480 .in
481 .PP
482 Unreserved characters may be included in a URI.
483 Unreserved characters
484 include uppercase and lowercase Latin letters,
485 decimal digits, and the following
486 limited set of punctuation marks and symbols:
487 .IP
488 .in +4n
489 .EX
490 \- _ . ! \(ti * ' ( )
491 .EE
492 .in
493 .PP
494 All other characters must be escaped.
495 An escaped octet is encoded as a character triplet, consisting of the
496 percent character "%" followed by the two hexadecimal digits
497 representing the octet code (you can use uppercase or lowercase letters
498 for the hexadecimal digits).
499 For example, a blank space must be escaped
500 as "%20", a tab character as "%09", and the "&" as "%26".
501 Because the percent "%" character always has the reserved purpose of
502 being the escape indicator, it must be escaped as "%25".
503 It is common practice to escape space characters as the plus symbol (+)
504 in query text; this practice isn't uniformly defined
505 in the relevant RFCs (which recommend %20 instead) but any tool accepting
506 URIs with query text should be prepared for them.
507 A URI is always shown in its "escaped" form.
508 .PP
509 Unreserved characters can be escaped without changing the semantics
510 of the URI, but this should not be done unless the URI is being used
511 in a context that does not allow the unescaped character to appear.
512 For example, "%7e" is sometimes used instead of "\(ti" in an HTTP URL
513 path, but the two are equivalent for an HTTP URL.
514 .PP
515 For URIs which must handle characters outside the US ASCII character set,
516 the HTML 4.01 specification (section B.2) and
517 IETF RFC\~3986 (last paragraph of section 2.5)
518 recommend the following approach:
519 .IP 1. 4
520 translate the character sequences into UTF-8 (IETF RFC\~3629)\(emsee
521 .BR utf\-8 (7)\(emand
522 then
523 .IP 2.
524 use the URI escaping mechanism, that is,
525 use the %HH encoding for unsafe octets.
526 .SS Writing a URI
527 When written, URIs should be placed inside double quotes
528 (e.g., "http://www.kernel.org"),
529 enclosed in angle brackets (e.g., <http://lwn.net>),
530 or placed on a line by themselves.
531 A warning for those who use double-quotes:
532 .B never
533 move extraneous punctuation (such as the period ending a sentence or the
534 comma in a list)
535 inside a URI, since this will change the value of the URI.
536 Instead, use angle brackets instead, or
537 switch to a quoting system that never includes extraneous characters
538 inside quotation marks.
539 This latter system, called the 'new' or 'logical' quoting system by
540 "Hart's Rules" and the "Oxford Dictionary for Writers and Editors",
541 is preferred practice in Great Britain and in various European languages.
542 Older documents suggested inserting the prefix "URL:"
543 just before the URI, but this form has never caught on.
544 .PP
545 The URI syntax was designed to be unambiguous.
546 However, as URIs have become commonplace, traditional media
547 (television, radio, newspapers, billboards, etc.) have increasingly
548 used abbreviated URI references consisting of
549 only the authority and path portions of the identified resource
550 (e.g., <www.w3.org/Addressing>).
551 Such references are primarily
552 intended for human interpretation rather than machine, with the
553 assumption that context-based heuristics are sufficient to complete
554 the URI (e.g., hostnames beginning with "www" are likely to have
555 a URI prefix of "http://" and hostnames beginning with "ftp" likely
556 to have a prefix of "ftp://").
557 Many client implementations heuristically resolve these references.
558 Such heuristics may
559 change over time, particularly when new schemes are introduced.
560 Since an abbreviated URI has the same syntax as a relative URL path,
561 abbreviated URI references cannot be used where relative URIs are
562 permitted, and can be used only when there is no defined base
563 (such as in dialog boxes).
564 Don't use abbreviated URIs as hypertext links inside a document;
565 use the standard format as described here.
566 .SH STANDARDS
567 .UR http://www.ietf.org\:/rfc\:/rfc2396.txt
568 (IETF RFC\ 2396)
569 .UE ,
570 .UR http://www.w3.org\:/TR\:/REC\-html40
571 (HTML 4.0)
572 .UE .
573 .SH NOTES
574 Any tool accepting URIs (e.g., a web browser) on a Linux system should
575 be able to handle (directly or indirectly) all of the
576 schemes described here, including the man: and info: schemes.
577 Handling them by invoking some other program is
578 fine and in fact encouraged.
579 .PP
580 Technically the fragment isn't part of the URI.
581 .PP
582 For information on how to embed URIs (including URLs) in a data format,
583 see documentation on that format.
584 HTML uses the format <A HREF="\fIuri\fP">
585 .I text
586 </A>.
587 Texinfo files use the format @uref{\fIuri\fP}.
588 Man and mdoc have the recently added UR macro, or just include the
589 URI in the text (viewers should be able to detect :// as part of a URI).
590 .PP
591 The GNOME and KDE desktop environments currently vary in the URIs
592 they accept, in particular in their respective help browsers.
593 To list man pages, GNOME uses <toc:man> while KDE uses <man:(index)>, and
594 to list info pages, GNOME uses <toc:info> while KDE uses <info:(dir)>
595 (the author of this man page prefers the KDE approach here, though a more
596 regular format would be even better).
597 In general, KDE uses <file:/cgi-bin/> as a prefix to a set of generated
598 files.
599 KDE prefers documentation in HTML, accessed via the
600 <file:/cgi-bin/helpindex>.
601 GNOME prefers the ghelp scheme to store and find documentation.
602 Neither browser handles file: references to directories at the time
603 of this writing, making it difficult to refer to an entire directory with
604 a browsable URI.
605 As noted above, these environments differ in how they handle the
606 info: scheme, probably the most important variation.
607 It is expected that GNOME and KDE
608 will converge to common URI formats, and a future
609 version of this man page will describe the converged result.
610 Efforts to aid this convergence are encouraged.
611 .SS Security
612 A URI does not in itself pose a security threat.
613 There is no general guarantee that a URL, which at one time
614 located a given resource, will continue to do so.
615 Nor is there any
616 guarantee that a URL will not locate a different resource at some
617 later point in time; such a guarantee can be
618 obtained only from the person(s) controlling that namespace and the
619 resource in question.
620 .PP
621 It is sometimes possible to construct a URL such that an attempt to
622 perform a seemingly harmless operation, such as the
623 retrieval of an entity associated with the resource, will in fact
624 cause a possibly damaging remote operation to occur.
625 The unsafe URL
626 is typically constructed by specifying a port number other than that
627 reserved for the network protocol in question.
628 The client unwittingly contacts a site that is in fact
629 running a different protocol.
630 The content of the URL contains instructions that, when
631 interpreted according to this other protocol, cause an unexpected
632 operation.
633 An example has been the use of a gopher URL to cause an
634 unintended or impersonating message to be sent via a SMTP server.
635 .PP
636 Caution should be used when using any URL that specifies a port
637 number other than the default for the protocol, especially when it is
638 a number within the reserved space.
639 .PP
640 Care should be taken when a URI contains escaped delimiters for a
641 given protocol (for example, CR and LF characters for telnet
642 protocols) that these are not unescaped before transmission.
643 This might violate the protocol, but avoids the potential for such
644 characters to be used to simulate an extra operation or parameter in
645 that protocol, which might lead to an unexpected and possibly harmful
646 remote operation to be performed.
647 .PP
648 It is clearly unwise to use a URI that contains a password which is
649 intended to be secret.
650 In particular, the use of a password within
651 the "userinfo" component of a URI is strongly recommended against except
652 in those rare cases where the "password" parameter is intended to be public.
653 .SH BUGS
654 Documentation may be placed in a variety of locations, so there
655 currently isn't a good URI scheme for general online documentation
656 in arbitrary formats.
657 References of the form
658 <file:///usr/doc/ZZZ> don't work because different distributions and
659 local installation requirements may place the files in different
660 directories
661 (it may be in /usr/doc, or /usr/local/doc, or /usr/share,
662 or somewhere else).
663 Also, the directory ZZZ usually changes when a version changes
664 (though filename globbing could partially overcome this).
665 Finally, using the file: scheme doesn't easily support people
666 who dynamically load documentation from the Internet (instead of
667 loading the files onto a local filesystem).
668 A future URI scheme may be added (e.g., "userdoc:") to permit
669 programs to include cross-references to more detailed documentation
670 without having to know the exact location of that documentation.
671 Alternatively, a future version of the filesystem specification may
672 specify file locations sufficiently so that the file: scheme will
673 be able to locate documentation.
674 .PP
675 Many programs and file formats don't include a way to incorporate
676 or implement links using URIs.
677 .PP
678 Many programs can't handle all of these different URI formats; there
679 should be a standard mechanism to load an arbitrary URI that automatically
680 detects the users' environment (e.g., text or graphics,
681 desktop environment, local user preferences, and currently executing
682 tools) and invokes the right tool for any URI.
683 .\" .SH AUTHOR
684 .\" David A. Wheeler (dwheeler@dwheeler.com) wrote this man page.
685 .SH SEE ALSO
686 .BR lynx (1),
687 .BR man2html (1),
688 .BR mailaddr (7),
689 .BR utf\-8 (7)
690 .PP
691 .UR http://www.ietf.org\:/rfc\:/rfc2255.txt
692 IETF RFC\ 2255
693 .UE