Curb

url = 'target url'
data = 'data to post'
begin
  http = Curl.post(url, data) do |c|
    c.ssl_verify_peer = false
    c.verbose = true
  end
  puts "MESSAGE(http.body_str.length): #{http.body_str}" 
rescue => e
  puts "ERROR: #{e.message}"
end

Reference

results matching ""

    No results matching ""