You can just pass a hash representing an HTTP header to the request method. “Content-Type” => “application/x-www-form-urlencoded”.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Adding extra fields to request headers | 0 | 109 | February 5, 2008 | |
Re:HTTP download | 1 | 100 | August 20, 2010 | |
:something => {:foo => 1, :bar => 2} in a GET request | 0 | 83 | May 21, 2007 | |
POST request with custom headers | 0 | 186 | October 21, 2008 | |
simple net/http request encoding | 0 | 151 | March 23, 2011 |