List of usage examples for org.apache.http.client.entity UrlEncodedFormEntityHacked UrlEncodedFormEntityHacked
public UrlEncodedFormEntityHacked(final Iterable<? extends NameValuePair> parameters, final Charset charset)
From source file:org.andstatus.app.net.http.HttpConnectionApacheCommon.java
private void fillSinglePartPost(HttpPost postMethod, JSONObject formParams) throws ConnectionException, UnsupportedEncodingException { List<NameValuePair> nvFormParams = HttpConnectionApacheCommon.jsonToNameValuePair(formParams); if (nvFormParams != null) { HttpEntity formEntity = new UrlEncodedFormEntityHacked(nvFormParams, HTTP.UTF_8); postMethod.setEntity(formEntity); }/*from w w w . j ava2 s .c o m*/ }