I have the rest client gem and I am defining a request like this:
url = \'http://someurl\' request = {\"data\" => data}.to_json response = RestClient.post(ur
You can also do this
RestClient::Request.execute( :method => :get or :post, :url => your_url, :headers => {key => value} )