m3dev / curly

A pretty simple HTTP client as handy as `curl` command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature] Support for multi value with same key on POST

reki2000 opened this issue · comments

Expected usage:

Map<String,Object> params = new HashMap<String, Object>();
params.put("single", "value"); // of course, this works now
params.put("multi", new String[] { "value1", "value2" }) ; // this doesn't work - want to pass array or Iterable
Response response = HTTP.post("http://someurl", params);

If this interface looks good, I would make PR for this issue

I think it looks good.