title: Show headers and body text of an HTTP request in Ruby
body: <p>I'm sure this is easy, but I've searched pretty extensively and been unable to find an answer. I'm using the <code>Net::Http</code> library in Ruby and am trying to figure out how I show the complete body of an HTTP GET request? Something like the following:</p>
  <pre class="lang-none prettyprint-override"><code>GET /really_long_path/index.html?q=foo&amp;s=bar HTTP\1.1
  Cookie: some_cookie;
  Host: remote_host.example.com
  </code></pre>
  <p>I am looking for the raw <strong>REQUEST</strong> , not the <strong>RESPONSE</strong> to be captured.</p>