Protocols

URLs are used in a number of circumstances, to retrieve data using many techniques for many purposes. For example, they are used for e-mail, for file transfer and for USENET news. The first part of the URL therefore gives an indication of the scheme it belongs to. The scheme, or protocol, is separated from the rest of the URL using a colon:

					protocol:scheme-specific-part
				

The protocols for the uses given above are 'mailto:', 'ftp:' (File Transport Protocol) and 'news:':

mailto:scheme-specific-part

ftp:scheme-specific-part

news:scheme-specific-part
				

The syntax of the remainder of the URL depends on the requirements and characteristics of the scheme involved. Here, the discussion concentrates on the file URL scheme and HTTP URL scheme, ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.