title: What's the name of the part of the URL before the query string?
body: <p>Take the following URL: <a href="http://3.chart.apis.google.com/chart?cht=p&amp;chd=t:1,2,3&amp;chl=a|b|c&amp;chs=300x100" rel="noreferrer">http://3.chart.apis.google.com/chart?cht=p&amp;chd=t:1,2,3&amp;chl=a|b|c&amp;chs=300x100</a></p>
  
  <p>It can be broken down as follows:</p>
  
  <ul>
  <li>Protocol: <code>http</code></li>
  <li>Hostname: <code>3.chart.apis.google.com</code></li>
  <li>Path: <code>chart</code></li>
  <li>Query: <code>cht=p&amp;chd=t:1,2,3&amp;chl=a|b|c&amp;chs=300x100</code></li>
  </ul>
  
  <p>I'm looking for the name of the protocol, hostname and path? i.e. everything up to the query string.</p>