Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uri = URI('http://www.example.com/todo.cgi')
- req = Net::HTTP::Post.new(uri.path)
- req.set_form_data('from' => '2005-01-01', 'to' => '2005-03-31')
- parameter_list.each_with_index do |param,index|
- req.set_form_data(param.to_s => value_list[index])
- end
Add Comment
Please, Sign In to add comment