Take the following URL: http://3.chart.apis.google.com/chart?cht=p&chd=t:1,2,3&chl=a|b|c&chs=300×100
It can be broken down as follows:
- Protocol:
http - Hostname:
3.chart.apis.google.com - Path:
chart - Query:
cht=p&chd=t:1,2,3&chl=a|b|c&chs=300x100
I’m looking for the name of the protocol, hostname and path? i.e. everything up to the query string.
there is no canonical name for those parts of the URL (or URI if you like) up to but not including the querystring. the entirety of that string is a URL which consists of:
Scheme/Protocol
Domain
Port (Assumed as default for protocol if not specified)
Path
Querystring
see: http://en.wikipedia.org/wiki/Uniform_Resource_Locator