 <p>According to Net::HTTP doc you can do </p> <pre><code>res = Net::HTTP.post_form("example.com/index.html", 'q' =&gt; 'ruby', 'max' =&gt; '50') puts res.body </code></pre> <p>see <a href="http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html#method-c-post_form" rel="nofollow">http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html#method-c-post_form</a></p>