Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Name for host + path (parts of a URL)

+6
−0

Among other things, a URL consists of a host and a path:

URL syntax diagram

I was wondering (and couldn't find anything) if there's a name for the combination of host and path.

Is there a name for these:

It would be useful to have a name for this combination of host and path since, for example, web browsers accept example.com/path in the URL bar and the connection works: The browser prepends the scheme and adds the port number.

Another example of how common host + path is, which became apparent after posting this question: Codidact's Markdown processor will turn example.com/path into a link:

<a href="http://example.com/path">example.com/path</a>
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+8
−0

RFC 3986 defines a suffix reference as follows (emphasis my own):

4.5. Suffix Reference

The URI syntax is designed for unambiguous reference to resources and extensibility via the URI scheme. However, as URI identification and usage have become commonplace, traditional media (television, radio, newspapers, billboards, etc.) have increasingly used a suffix of the URI as a reference, consisting of only the authority and path portions of the URI, such as

 www.w3.org/Addressing/

or simply a DNS registered name on its own. Such references are primarily intended for human interpretation rather than for machines, with the assumption that context-based heuristics are sufficient to complete the URI (e.g., most registered names beginning with "www" are likely to have a URI prefix of "http://"). Although there is no standard set of heuristics for disambiguating a URI suffix, many client implementations allow them to be entered by the user and heuristically resolved.

This is not quite what you've literally asked for, as the authority also optionally includes "userinfo" and the port[1], but it's as close as I could find to a standardized term and it mentions that this is what many implementations will accept when resolving URIs. If you really want to be specific, it's probably easiest just to say "host + path".


  1.  authority   = [ userinfo "@" ] host [ ":" port ]
    
    ↩︎
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Works for me (1 comment)

Sign up to answer this question »