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 | 116 | February 5, 2008 | |
| request headersSo the | 0 | 108 | June 30, 2008 | |
| Set requests' header inside spec/routing | 0 | 143 | July 12, 2012 | |
| How to get http details in rails | 4 | 327 | April 25, 2011 | |
| net/http | 0 | 74 | January 6, 2007 |