title: Why am I getting a Bad Request response when I try my request with HTTP Protocol?
body: <p>I have Apache Tomcat running in my local machine currently. </p>
  
  <p>When I try this with telnet:</p>
  
  <pre><code>telnet localhost 8080
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  GET /beer/
  </code></pre>
  
  <p>I will get a response that looks something like:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;Beer Expert!&lt;/title&gt;
      &lt;meta charset="utf-8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  </code></pre>
  
  <p>etc, etc..</p>
  
  <p>My first question is: <strong>Where is all the HTTP Response Headers</strong> such as <strong>HTTP/1.1 200 OK</strong> etc?</p>
  
  <p>Also when I try my telnet query as follows:</p>
  
  <pre><code>telnet localhost 8080
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  GET /beer/ HTTP/1.1
  </code></pre>
  
  <p>I will get:</p>
  
  <pre><code>HTTP/1.1 400 Bad Request
  Server: Apache-Coyote/1.1
  Transfer-Encoding: chunked
  Date: Tue, 19 Jan 2016 12:15:23 GMT
  Connection: close
  
  0
  
  Connection closed by foreign host.
  </code></pre>
  
  <p>Why do I see the HTTP Response headers now? And why am I getting a <strong>Bad Request</strong> response?</p>