Visual RFC.
ALL RFCs / RFC 3986
Read the RFC ↗
RFC 3986 / AUTHORITY

Authority has its own structure

04

User information, host, and port are separate subcomponents; IP literals need brackets.

RFC 3986 · § 3.2EXAMPLE
4 / 4
04
Apply scheme-specific meaning.

The generic grammar identifies the port component; the scheme defines defaults.

Authority has its own structureAuthority subcomponents separate userinfo, host, and port, with bracket strokes around an IPv6 literal.Authority is not just a host stringname @ example.org : 443userinfohostportname is not the destination[2001:db8::7] : 443brackets contain the IPv6 addressThe scheme defines what the port means.

Key idea: Read the host after parsing, not by guessing from the text.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The generic authority form is [userinfo@]host[:port].
  • IPv6 address literals are enclosed in square brackets in a URI host.
  • Use of a password in userinfo is deprecated.

The examples simplify the wire representation. Follow the linked specification and application profile for implementation.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

What changed
RFC 2396RFC 3986 Appendix D.1

The revised generic syntax incorporates bracketed IP-literal hosts from RFC 2732 and expands normalization and comparison guidance.

Read the updated RFC section ↗

All chapters in RFC 3986

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗