I want to emulate a HTTP POST using application/x-www-form-urlencoded encoding to send a option group that allows multiple selections.
<select name="groups" multiple="multiple" size="4">
    <option value="2">Administration</option>
    <option value="1">General</option>
</select>
Does adding 2 NameValuePairs (NVP) with the same name work ? My serverside log shows that only the first NVP was received.
e.g
PostMethod method = ...;
NameValuePair[] nvpairs = {
    new NameValuePair( "groups", "2" );
    new NameValuePair( "groups", "1" );
};
method.addParameter( nvpairs );
Only the groups=1 parameter was received. Thanks