Published in: Ruby
uri = URI.parse(url) req = Net::HTTP::Post.new(url) req.set_form_data({ \'field\' => \'value\' }) res = Net::HTTP.new(uri.host, uri.port).start { |http| http.request(req) }
You need to login to post a comment.
Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.
richardleonard on 12/31/69
9 people have marked this snippet as a favorite
daniel
sp00nyG
jpb
idiotkings
bbuckley
die_gabel
Phoenix
vali29
tkmr
Published in: Ruby
uri = URI.parse(url) req = Net::HTTP::Post.new(url) req.set_form_data({ \'field\' => \'value\' }) res = Net::HTTP.new(uri.host, uri.port).start { |http| http.request(req) }
You need to login to post a comment.