PostMethod post = new PostMethod(url);
String content = SOSFile.readFile(inputFile);
getLogger().debug9("post before replacements: "+content);
content = mergedVariables.substitute(content);
getLogger().debug5("Posting: "+content);
StringRequestEntity req = new StringRequestEntity(content);
// post.setRequestEntity(new InputStreamRequestEntity(new FileInputStream(inputFile), inputFile.length()));
post.setRequestEntity(req);
post.setRequestHeader("Content-type", contentType);
HttpClient httpClient = new HttpClient();