/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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) }
Comments
