Is there a name for a URL without a protocol?

A simple URL usually has a pattern protocol://host:port:

http: // localhost: 8080

But if I omit the protocol:

local: 8080

Is it still a URL or has a different name?

I am aware of the existence of protocol related URLs, is this also their case?

+4
source share
1 answer

localhost:8080cannot relate to a relative link , since they must begin with //(in this case, the -path network, usually called a protocol reference), /or with a path segment that does not contain :.

(In the latter case, you can use ./localhost:8080.)

localhost:8080 as part http://localhost:8080

URI http://localhost:8080, localhost:8080 .

localhost , :8080 - .

localhost:8080 URI

localhost:8080 URI:

  • localhost
  • 8080

localhost URI, localhost:8080 URI.

+2

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


All Articles