Are the terms “URL” and “path” interchangeable?

If you think this is not the case, provide an example of a line that can be called "URL" rather than "path", and another - "path" rather than "URL".

+3
source share
4 answers

URIs (including URLs, although in most cases this difference does not matter, and URLs are always URIs, so basically we are just talking about URIs these days) is a globally unique identifier for a resource.

eg. http://example.net/foo/bar?a=b

The path is part of the URI, in the example above the path is / foo / bar

URI - URI. , , URI, , , URI . , /foo/bar? A = b, URI , , . , .. /bar?a=b, , ://example.net/foo/bar? A = b, URI URI HTTP, , URI HTTPS .

+2

URL: "URL" "" ?
:/questions/3491674/are-the-terms-url-and-path-


: http
: stackoverflow.com

URL-, .

+4

Source: RFC 1738

An HTTP URL takes the form:

    http://<host>:<port>/<path>?<searchpart>
+3
source

The URL is basically a "web specific term", but the path can be used in many different contexts, file system paths, XML paths [x], etc.

+1
source

Source: https://habr.com/ru/post/1759848/


All Articles