It is true that Map<String, String> does not support duplicate but however that you
could do something like this. you won't have to override getBody(), just the getParams which i'm assuming you're already doing.
@Override
protected Map<String, String> getParams() {
Map<String, String> params = new HashMap<String, String>();;
params.putAll(AddArrayParams());
return params;
}
////////////// you will use this method to add the array parameter
public Map<? extends String, ? extends String> AddArrayParams() {
// TODO Auto-generated method stub
Map<String, String> params = new HashMap<String, String>();
// figure that if its an array and the data is sent as [0],[1] then lets just send it up that way
params.put("param[0]","a");
params.put("param[1]","b");
params.put("param[3]","c");
////etc
return params;
}
Good Luck