daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Post the email to the Rails app's restful service
  2. res = Net::HTTP.post_form(URI.parse(service_url), {'params_name'=> params_value})
  3. case res
  4. when Net::HTTPSuccess, Net::HTTPRedirection
  5.   # OK
  6. else
  7.   res.error!
  8. end
RAW Paste Data
Top