method

post

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Net::HTTP
post(url, data, header = nil) public

Posts data to the specified URI object.

Example:

require 'net/http'
require 'uri'

Net::HTTP.post URI('http://www.example.com/api/search'),
               { "q" => "ruby", "max" => "50" }.to_json,
               "Content-Type" => "application/json"
Show source
Register or log in to add new notes.