while (parameterNames.hasMoreElements()) {
String name = parameterNames.nextElement();
String value = req.getParameter(name);
params.put(name, value);
}
HttpClient client = new HttpClient();
byte[] bytes = null;
if (this.charset != null) {
bytes = client.doPost(this.url, params, this.charset);
} else {
bytes = client.doPost(this.url, params);
}
resp.getOutputStream().write(bytes);
} catch (HttpException e) {
throw new ServletException(e);
}