ahmadnassri / app-restconsole

HTTP Client and Request Visualizer and Constructor tool, helps developers build, debug and test RESTful APIs
243 stars 60 forks source link

Cannot send array parameters #66

Open nickdaugherty opened 12 years ago

nickdaugherty commented 12 years ago

When setting request parameters, the system uses only the last defined value for a given parameter. IE, if you have two parameters named 'user_id', only the last one is sent. This makes sense under normal use, but fails when attempting to send arrays.

So this fails (but are valid http request params):

user_ids[] = 1
user_ids[] = 39
user_ids[] = 61
gudoy commented 12 years ago

It seems to work when using explicit indexes: user_ids[0] = 1 user_ids[1] = 39 user_ids[2] = 61 But it would be nice not having to rely and just use the '[]' syntax