Adam @ Heroku
a tornado of razorblades

rest-client 0.4

Posted by Adam Wiggins on April 05, 2008 at 12:59 PM

The fourth release of rest-client includes a patch from Greg Borenstein that makes it easy to send form-urlencoded data by passing a hash instead of a string as the payload:

RestClient.post 'http://myblog.example.com/posts',
    { 'posts[title]' => 'My Post', 'posts[body]' => 'Hello, world' }
Hierarchy: previous, next

Comments

There are 0 comments on this post. Post yours →

Post a comment

Required fields in bold.