Hi there,
I'm attempting to use the HttpPut class to test my RESTful controller
I've implemented in SpringMVC. I'm having trouble sending parameters in
the request. I've tried using both
put.getParams().setParameter("name", name);
and
List<NameValuePair> putParameters = new ArrayList<NameValuePair>();
putParameters.add(new BasicNameValuePair("_method", "put"));
putParameters.add(new BasicNameValuePair("pwd", pwd));
put.setEntity(new UrlEncodedFormEntity(putParameters));
But neither methods actually send the parameters as part of the request.
I can debug the incoming requests and inspect the request and I cannot
see any parameters at all.
I've successfully implemented the GET, POST and DELETE requests without
any troubles. Does anyone have any ideas?
Cheers,
Pete