title: Curl to return http status code along with the response
body: <p>I use curl to get http headers to find http status code and also return response. I get the http headers with the command</p>
  
  <pre><code>curl -I http://localhost
  </code></pre>
  
  <p>To get the response, I use the command </p>
  
  <pre><code>curl http://localhost
  </code></pre>
  
  <p>As soon as use the -I flag, I get only the headers and the response is no longer there. Is there a way to get both the http response and the headers/http status code in in one command?</p>