The five URI components
01A URI is parsed into scheme, authority, path, query, and fragment before its meaning is interpreted.
Fragment interpretation depends on the representation’s media type.
Key idea: The punctuation marks component boundaries.
Rules & examples
The punctuation marks component boundaries.
- The scheme ends at the first colon.
- An authority, when present, begins after // and ends at /, ?, #, or the end.
- A fragment begins at # and is separated before dereferencing.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Sources
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.