setupDoInputOutputFlag();
Map<String, Object> params = request.getParams();
if (null != params && params.size() > 0) {
DataOutputStream outs = new DataOutputStream(conn.getOutputStream());
for (Entry<String,?> entry : params.entrySet()) {
outs.writeBytes("--" + boundary + SEPARATOR);
String key = entry.getKey();
File f = null;
if (entry.getValue() instanceof File)
f = (File)entry.getValue();
else if (entry.getValue() instanceof String)