Guest User

Untitled

a guest
May 16th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment