@Override
public byte[] postForm(String uri, Map<String, String> uriParameters, Map<String, String> formParameters)
throws URISyntaxException {
URIBuilder builder = new URIBuilder(uri);
for (Entry<String, String> entry : uriParameters.entrySet()) {
builder.addParameter(entry.getKey(), entry.getValue());
}
List<NameValuePair> formParams = new ArrayList<NameValuePair>();
for (Entry<String, String> entry : formParameters.entrySet()) {
formParams.add(new BasicNameValuePair(entry.getKey(), entry.getValue()));
}