method

post

Importance_1
Ruby latest stable (v2_5_5) - 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.