Hi Satya,
setQueryString() assumes that the content is already URL encoded and it
is then sent as part of the request line, i.e.:
POST /path?QUERY_STRING HTTP/1.1
My guess is that you want to send the query string as part of the
message body. You can do this with:
mehod.setRequestBody(userMod
I am using the following code:
HttpClient client = new HttpClient(connMgr);
client.setHostConfiguration(hostConfig);
PostMethod method = new PostMethod(tokenURL);
method.setQueryString( userModel.getQueryString() );
client.executeMethod(method);
byte[] responseBody = method.getResponseBody();