How to send a POST request to a Ruby Mechanize gem with multiple values ββfor the same key?
eg. I want to send foo=1 and foo=2 . I tried
parameter = {'foo' => ['1', '2']} Mechanize.new.post('http://somewebsite.com', parameters)
But using requestb.in , I get only "12" for "foo", instead of "1" for one value of "foo 'and' 2 'for another value of' foo '.
Also: the reason I do this is because I want to select multiple values ββin the multiple select list, but calling select_all in the select list and select_all form does not work, so I'm trying to manually submit the POST data.
source share