You can send a json data array as follows:
require 'rest_client' postData = Net::HTTP.post_form(URI.parse('http://www.xyz.com/api/valueoff'), {'data'=>jsonData})
For this, you must have a rest_client gem.
unknownbits Apr 27 '13 at 1:32 2013-04-27 01:32
source share