title: Add headers to a request in rails
body: <p>I'm using Rails 3.2.1 to make an HTTP Post.</p>
  
  <p>I need to add <code>X-FORWARDED</code> FOR to the header.  How do I do that in Rails?</p>
  
  <p>Code:</p>
  
  <pre><code>post_data = {
    "username" =&gt; tabuser
  }
  
  response = Net::HTTP.post_form(URI.parse("http://&lt;my php file&gt;"), post_data)
  </code></pre>