sending POST in ruby?
The standard library Net::HTTP is pretty straightforward and handles POST
.
From the docs:
response = http.post('/cgi-bin/search.rb', 'query=foo')# using blockFile.open('result.txt', 'w') {|f| http.post('/cgi-bin/search.rb', 'query=foo') do |str| f.write str end}
For more detailed examples of how to use Net::HTTP, see August Lilleaas's Net::HTTP cheat sheet repository on Github.