]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man7/uri.7
5ca3133c8c5682471f69619df2866d30388468bd
[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" "Linux Programmer's Manual"
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 ; / ? : @ & = + $ ,
477 .PP
478 Unreserved characters may be included in a URI.
479 Unreserved characters
480 include uppercase and lowercase Latin letters,
481 decimal digits, and the following
482 limited set of punctuation marks and symbols:
483 .IP
484 \- _ . ! \(ti * ' ( )
485 .PP
486 All other characters must be escaped.
487 An escaped octet is encoded as a character triplet, consisting of the
488 percent character "%" followed by the two hexadecimal digits
489 representing the octet code (you can use uppercase or lowercase letters
490 for the hexadecimal digits).
491 For example, a blank space must be escaped
492 as "%20", a tab character as "%09", and the "&" as "%26".
493 Because the percent "%" character always has the reserved purpose of
494 being the escape indicator, it must be escaped as "%25".
495 It is common practice to escape space characters as the plus symbol (+)
496 in query text; this practice isn't uniformly defined
497 in the relevant RFCs (which recommend %20 instead) but any tool accepting
498 URIs with query text should be prepared for them.
499 A URI is always shown in its "escaped" form.
500 .PP
501 Unreserved characters can be escaped without changing the semantics
502 of the URI, but this should not be done unless the URI is being used
503 in a context that does not allow the unescaped character to appear.
504 For example, "%7e" is sometimes used instead of "\(ti" in an HTTP URL
505 path, but the two are equivalent for an HTTP URL.
506 .PP
507 For URIs which must handle characters outside the US ASCII character set,
508 the HTML 4.01 specification (section B.2) and
509 IETF RFC\ 2718 (section 2.2.5) recommend the following approach:
510 .IP 1. 4
511 translate the character sequences into UTF-8 (IETF RFC\ 2279)\(emsee
512 .BR utf\-8 (7)\(emand
513 then
514 .IP 2.
515 use the URI escaping mechanism, that is,
516 use the %HH encoding for unsafe octets.
517 .SS Writing a URI
518 When written, URIs should be placed inside double quotes
519 (e.g., "http://www.kernel.org"),
520 enclosed in angle brackets (e.g., <http://lwn.net>),
521 or placed on a line by themselves.
522 A warning for those who use double-quotes:
523 .B never
524 move extraneous punctuation (such as the period ending a sentence or the
525 comma in a list)
526 inside a URI, since this will change the value of the URI.
527 Instead, use angle brackets instead, or
528 switch to a quoting system that never includes extraneous characters
529 inside quotation marks.
530 This latter system, called the 'new' or 'logical' quoting system by
531 "Hart's Rules" and the "Oxford Dictionary for Writers and Editors",
532 is preferred practice in Great Britain and in various European languages.
533 Older documents suggested inserting the prefix "URL:"
534 just before the URI, but this form has never caught on.
535 .PP
536 The URI syntax was designed to be unambiguous.
537 However, as URIs have become commonplace, traditional media
538 (television, radio, newspapers, billboards, etc.) have increasingly
539 used abbreviated URI references consisting of
540 only the authority and path portions of the identified resource
541 (e.g., <www.w3.org/Addressing>).
542 Such references are primarily
543 intended for human interpretation rather than machine, with the
544 assumption that context-based heuristics are sufficient to complete
545 the URI (e.g., hostnames beginning with "www" are likely to have
546 a URI prefix of "http://" and hostnames beginning with "ftp" likely
547 to have a prefix of "ftp://").
548 Many client implementations heuristically resolve these references.
549 Such heuristics may
550 change over time, particularly when new schemes are introduced.
551 Since an abbreviated URI has the same syntax as a relative URL path,
552 abbreviated URI references cannot be used where relative URIs are
553 permitted, and can be used only when there is no defined base
554 (such as in dialog boxes).
555 Don't use abbreviated URIs as hypertext links inside a document;
556 use the standard format as described here.
557 .SH CONFORMING TO
558 .UR http://www.ietf.org\:/rfc\:/rfc2396.txt
559 (IETF RFC\ 2396)
560 .UE ,
561 .UR http://www.w3.org\:/TR\:/REC\-html40
562 (HTML 4.0)
563 .UE .
564 .SH NOTES
565 Any tool accepting URIs (e.g., a web browser) on a Linux system should
566 be able to handle (directly or indirectly) all of the
567 schemes described here, including the man: and info: schemes.
568 Handling them by invoking some other program is
569 fine and in fact encouraged.
570 .PP
571 Technically the fragment isn't part of the URI.
572 .PP
573 For information on how to embed URIs (including URLs) in a data format,
574 see documentation on that format.
575 HTML uses the format <A HREF="\fIuri\fP">
576 .I text
577 </A>.
578 Texinfo files use the format @uref{\fIuri\fP}.
579 Man and mdoc have the recently added UR macro, or just include the
580 URI in the text (viewers should be able to detect :// as part of a URI).
581 .PP
582 The GNOME and KDE desktop environments currently vary in the URIs
583 they accept, in particular in their respective help browsers.
584 To list man pages, GNOME uses <toc:man> while KDE uses <man:(index)>, and
585 to list info pages, GNOME uses <toc:info> while KDE uses <info:(dir)>
586 (the author of this man page prefers the KDE approach here, though a more
587 regular format would be even better).
588 In general, KDE uses <file:/cgi-bin/> as a prefix to a set of generated
589 files.
590 KDE prefers documentation in HTML, accessed via the
591 <file:/cgi-bin/helpindex>.
592 GNOME prefers the ghelp scheme to store and find documentation.
593 Neither browser handles file: references to directories at the time
594 of this writing, making it difficult to refer to an entire directory with
595 a browsable URI.
596 As noted above, these environments differ in how they handle the
597 info: scheme, probably the most important variation.
598 It is expected that GNOME and KDE
599 will converge to common URI formats, and a future
600 version of this man page will describe the converged result.
601 Efforts to aid this convergence are encouraged.
602 .SS Security
603 A URI does not in itself pose a security threat.
604 There is no general guarantee that a URL, which at one time
605 located a given resource, will continue to do so.
606 Nor is there any
607 guarantee that a URL will not locate a different resource at some
608 later point in time; such a guarantee can be
609 obtained only from the person(s) controlling that namespace and the
610 resource in question.
611 .PP
612 It is sometimes possible to construct a URL such that an attempt to
613 perform a seemingly harmless operation, such as the
614 retrieval of an entity associated with the resource, will in fact
615 cause a possibly damaging remote operation to occur.
616 The unsafe URL
617 is typically constructed by specifying a port number other than that
618 reserved for the network protocol in question.
619 The client unwittingly contacts a site that is in fact
620 running a different protocol.
621 The content of the URL contains instructions that, when
622 interpreted according to this other protocol, cause an unexpected
623 operation.
624 An example has been the use of a gopher URL to cause an
625 unintended or impersonating message to be sent via a SMTP server.
626 .PP
627 Caution should be used when using any URL that specifies a port
628 number other than the default for the protocol, especially when it is
629 a number within the reserved space.
630 .PP
631 Care should be taken when a URI contains escaped delimiters for a
632 given protocol (for example, CR and LF characters for telnet
633 protocols) that these are not unescaped before transmission.
634 This might violate the protocol, but avoids the potential for such
635 characters to be used to simulate an extra operation or parameter in
636 that protocol, which might lead to an unexpected and possibly harmful
637 remote operation to be performed.
638 .PP
639 It is clearly unwise to use a URI that contains a password which is
640 intended to be secret.
641 In particular, the use of a password within
642 the "userinfo" component of a URI is strongly recommended against except
643 in those rare cases where the "password" parameter is intended to be public.
644 .SH BUGS
645 Documentation may be placed in a variety of locations, so there
646 currently isn't a good URI scheme for general online documentation
647 in arbitrary formats.
648 References of the form
649 <file:///usr/doc/ZZZ> don't work because different distributions and
650 local installation requirements may place the files in different
651 directories
652 (it may be in /usr/doc, or /usr/local/doc, or /usr/share,
653 or somewhere else).
654 Also, the directory ZZZ usually changes when a version changes
655 (though filename globbing could partially overcome this).
656 Finally, using the file: scheme doesn't easily support people
657 who dynamically load documentation from the Internet (instead of
658 loading the files onto a local filesystem).
659 A future URI scheme may be added (e.g., "userdoc:") to permit
660 programs to include cross-references to more detailed documentation
661 without having to know the exact location of that documentation.
662 Alternatively, a future version of the filesystem specification may
663 specify file locations sufficiently so that the file: scheme will
664 be able to locate documentation.
665 .PP
666 Many programs and file formats don't include a way to incorporate
667 or implement links using URIs.
668 .PP
669 Many programs can't handle all of these different URI formats; there
670 should be a standard mechanism to load an arbitrary URI that automatically
671 detects the users' environment (e.g., text or graphics,
672 desktop environment, local user preferences, and currently executing
673 tools) and invokes the right tool for any URI.
674 .\" .SH AUTHOR
675 .\" David A. Wheeler (dwheeler@dwheeler.com) wrote this man page.
676 .SH SEE ALSO
677 .BR lynx (1),
678 .BR man2html (1),
679 .BR mailaddr (7),
680 .BR utf\-8 (7)
681 .PP
682 .UR http://www.ietf.org\:/rfc\:/rfc2255.txt
683 IETF RFC\ 2255
684 .UE