Guest User

Untitled

a guest
Nov 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. uri = URI('http://www.example.com/todo.cgi')
  2. req = Net::HTTP::Post.new(uri.path)
  3. req.set_form_data('from' => '2005-01-01', 'to' => '2005-03-31')
  4.  
  5. parameter_list.each_with_index do |param,index|
  6. req.set_form_data(param.to_s => value_list[index])
  7. end
Add Comment
Please, Sign In to add comment