Hello Alessandro,

> 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.

I've taken a short look at the HttpClient code. The parameters
are kept in a Vector, and the only check I've found regarding
the name is a check for null. What data structure are you using
when collecting the parameter set?
You could also try to write a test case that exhibits the problem.
If it's in HttpClient, we'll fix it.

hope that helps,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to