What is the protocol and host called?

According to specification and semantics, the protocol and the host are combined: is https://example.comit still called the host, or is it called the URL, URI, or something else?

Also, (https) is called a protocol or scheme? NGINX uses the scheme , but I do not see any reference to this origin.

+10
source share
4 answers

, , , - origin, RFC 6454.

+ , + + . , , https://example.com, + , , ( ) - 443, TLS - , http://example.com, 80.

, , , - , + , - , URL- , , https://example.com http://example.com, , , http://example.com http://example.com:8888. URL- " " , - .

+27

( URI STD 66, RFC 3986.)

URI (, IP-) ( )

, https://example.com

  • URI ( ),
  • URI ( , /).

( URI , , , URI .)

HTTP RFC 2616 , URI HTTP: URI Request-URI (. ), URI abs_path , / (.. https://example.com/).

URI, HTTP , scheme authority.

+1

IMHO, the origin is not the right term, because the origin refers to "where the message comes from." But it can also be a destination. Therefore, I believe that the base URL is the most suitable term for the protocol + host + port. See for example https://www.techopedia.com/definition/4858/base-url .

+1
source

All Articles