Created
March 10, 2011 07:26
-
-
Save yiquncode/863702 to your computer and use it in GitHub Desktop.
RUBY POST PURE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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