Typesetting URLs

URLs tend to be very long, and contain characters that would naturally prevent them being hyphenated even if they weren't typically set in \ttfamily, verbatim. Therefore, without special treatment, they often produce wildly overfull \hboxes, and their typeset representation is awful.

There are three packages that help solve this problem:

The author of this answer prefers the (rather newer) url package (directly or indirectly); both path and url work well with Plain TeX (though of course, the fancy LaTeX facilities of url don't have much place there). (hyperref isn't available in a version for use with Plain TeX.)

Documentation of both path and url is in the package files.

hyperref.sty
macros/latex/contrib/hyperref (zip, browse)
miniltx.tex
Distributed as part of macros/plain/graphics (zip, browse)
path.sty
macros/latex/contrib/misc/path.sty
url.sty
macros/latex/contrib/misc/url.sty

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=setURL