Submitting multiple values for the same key in a POST request in Ruby Mechanize
===

How would I submit a POST request in Ruby's Mechanize gem, with multiple values for the same key?

E.g. I want `foo=1` and `foo=2` to be sent. I tried

    parameter = {'foo' => ['1', '2']}
    Mechanize.new.post('http://somewebsite.com', parameters)

But using [requestb.in][1], I only get '12' for 'foo', instead of '1' for one value of 'foo' and '2' for another value of 'foo'.


  [1]: http://requestb.in/