title: Is Port Number Required in HTTP "Host" Header Parameter?
body: <p>Say I make an HTTP request to: <code>foosite.com</code> but the port I actually send the request to is 6103 and I DON'T put that port in the <code>Host</code> header for example:</p>
  
  <pre><code>GET /barpage HTTP/1.1
  Host: foosite.com
  Method: GET
  </code></pre>
  
  <p>Should http server then recognize that I'm trying to talk to it on port 6103? Or since it was omitted in the request header am I gambling on if the server actually recognizes this?</p>
  
  <p>I ask that question to say this: I've found that browsers, at least firefox + chrome, put the port in the <code>Host</code> header. But the Java app I'm using does not. And when the port is not passed in the <code>Host</code> the server responds back thinking I'm on port 80. So who do I need to badger? The server operator, or the Java programmer?</p>