Project

General

Profile

Bug #7794 ยป 0001-Fix-Net-HTTP.post_form-example.patch

davidbalbert (David Albert), 02/07/2013 09:18 AM

View differences:

lib/net/http.rb
# require 'net/http'
# require 'uri'
#
# HTTP.post_form URI('http://www.example.com/search.cgi'),
# { "q" => "ruby", "max" => "50" }
# Net::HTTP.post_form URI('http://www.example.com/search.cgi'),
# { "q" => "ruby", "max" => "50" }
#
def HTTP.post_form(url, params)
req = Post.new(url)
    (1-1/1)