* otherwise, just use the query string. For all AWS Query services,
* the best behavior is putting the params in the request body for
* POST requests, but we can't do that for S3.
*/
if (request.getContent() == null) {
if (nameValuePairs != null) postMethod.addParameters(nameValuePairs);
} else {
if (nameValuePairs != null) postMethod.setQueryString(nameValuePairs);
postMethod.setRequestEntity(new RepeatableInputStreamRequestEntity(request));
}
method = postMethod;