hi everybody i use PostMethod to send a post request with a bunch of parameters and have tried both ways to fill the request body:
postMethod.addParameter(String name, String value) and postMethod.setRequestBody(NameValuePair[] nameValuePairs) as long as at least two parameter names are different, everything works fine. i can verify with tcpdump that the request actually contains all name=value pairs separated by '&' characters. the problem: if the request only contains parameters with the same name, then in tcpdump i see all the name=value pairs, but no separating '&' characters. in this case, the (struts) application at the receiving end of my request doesn't see the single values of the params, but just one concatenation of all the values. i'm using HttpClient 3.0.1. has anyone ever had a similar problem? surely others must have had the same problem before, if this was a bug in httpclient .. so i guess the problem is probably on my side .. maybe you can help me look in the right direction .. any help will be appreciated! thanks in advance alessandro
