views:

252

answers:

6

If I have a URL like:

http://www.example.com:9090/test.html

Then I know that www.example.com is the host name, but what do you call http://www.example.com:9090? Is there some kind of established name for that?

A: 

I don't think so. If there was, I would expect the DOM to reflect this in the window.location class: https://developer.mozilla.org/En/DOM/Window.location

Teun D
+13  A: 

Hi, I don't know the name for when it has the scheme, but the hostname with the port is collectively known as the Authority. A nice explanation here.

keyboardP
+6  A: 

RFC 3986 details the syntax components. The part you refer to would be the scheme (http) and authority (www.example.com:9090).

McDowell
+1  A: 

You can read about every part of URL on Wikipedia. You'll find there that http is a protocol name, :9090 determines that the connection should be establishment on port #9090 etc.

Crozin
+1  A: 
  • http:// - Protocol
  • www - Server-Name (subdomain)
  • example - Second Level Domain (SLD)
  • com - Top Level Domain (TLD)
  • 9090 - Port number

Save the protocol, you can refer to 'www.example.com' as either the hostname or - more specifically - the 'fully qualified domain name'.

Toss in the '9090' and personally I'd be comfortable calling it the host, as that's usually what you'd get as the 'host' header in an HTTP request; something like 'host: www.example.com:9090'. In PHP it would be stored in the $_SERVER variables under 'HTTP_HOST' or 'SERVER_NAME'.

I dunno what you could call it once you toss in 'http://' :(

LeguRi
A: 

it means that the http server hosting example.com is using the port 9090 for processing http requests,it is a directive to the browser that it shoud connect to that server on port 9090 instead of 80 which it normally does if port is not specified

appusajeev