Protocol.registerProtocol("https", new Protocol("https", new EasySSLProtocolSocketFactory(), 443));
httpClient.getParams().setContentCharset("UTF-8");
// Create a post method for accessing the url.
PostMethod postMethod = new PostMethod(path);
// Set a default retry handler (see httpclient doc).
postMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false));
if (parameters != null) {
Iterator iterator = parameters.entrySet().iterator();
StringBuffer buffer = new StringBuffer(4096);
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();