#!/usr/bin/env ruby require 'net/http' url = 'https://xxxxxxxxxxxxxxxxxxxxx' uri = URI.parse(url) request = Net::HTTP::Put.new(uri.request_uri) request.set_form_data({ 'key' => 'xxxxxxxxxxxxxxxxxxxxxx', 'name' => 'hoge', }) options = {use_ssl: uri.scheme == 'https'} response = Net::HTTP.start(uri.host, uri.port, options) do |http| http.request(request) end puts response.body