title: Multiple key/value pairs in HTTP POST where key is the same name
body: <p>I'm working on an API that accepts data from remote clients, some of which where the key in an HTTP POST almost functions as an array. In english what this means is say I have a resource on my server called "class". A class in this sense, is the type a student sits in and a teacher educates in. When the user submits an HTTP POST to create a new class for their application, a lot of the key value pairs look like:</p>
  
  <p>student_name: Bob Smith<br>
  student_name: Jane Smith<br>
  student_name: Chris Smith  </p>
  
  <p>What's the best way to handle this on both the client side (let's say the client is cURL or ActiveResource, whatever..) and what's a decent way of handling this on the server-side if my server is a Ruby on Rails app? Need a way to allow for multiple keys with the same name and without any namespace clashing or loss of data. </p>
  
  <p>My requirement has to be that the POST data is urlencoded key/value pairs.</p>