Here is the method I needed to add the POST request to:
The post_form method returns a Net::HTTPResponse object and an entity body string (in Ruby 1.8, it only returns the Net::HTTPResponse object). You can also use the post method.
Similarly, you can perform a GET request on a URL like so:
The get method returns a String.
That's simple enough, right?


6:40 PM
byungjin
Posted in: 

















0 comments:
Post a Comment