Skip to content

Instantly share code, notes, and snippets.

@yiquncode
Created March 10, 2011 07:26
Show Gist options
  • Save yiquncode/863702 to your computer and use it in GitHub Desktop.
Save yiquncode/863702 to your computer and use it in GitHub Desktop.
RUBY POST PURE
def my_method
#do something with the data/model
my_connection = Net::HTTP.new('www.target.com', 80)
reponse = my_connection.post(path_within_url, data)
#do something with response if you want
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment