In our examples so far, we have only been retrieving data from the Web. Another form of interaction is to send data to a Web server. The most common example of this is when you fill out a form on a Web page. You can perform the same action from Ruby. For example:

require 'net/http'
url = URI.parse('')
response = Net::HTTP.post_form(url,{'name' => 'David', 'age' => '24'})
puts response.body