code: public HttpResponse doHttpCall(final String urlString,
  			final File fileToBeSent, final String userName,
  			final String userPassword, final String fileEncoding)
  			throws IOException {
  		return this.doHttpCall(urlString,
  				fileUtil.getFileContentsAsString(fileToBeSent, fileEncoding),
  				userName, userPassword, "", 0,
  				Collections.<String, String> emptyMap());
  	}
docs: Sends a string to a URL. This is very helpful when SOAP web services are
  involved or you just want to post a XML message to a URL. If the
  connection requires basic authentication you can set the user name and
  password.
  
  @param urlString
  the URL to post to
  @param fileToBeSent
  the file to be sent
  @param userName
  the username that will be used for Basic Auth
  @param userPassword
  the password that will be used for Basic Auth
  @param fileEncoding
  the file encoding. Examples: "UTF-8", "UTF-16". the username
  password that will be used for Basic Authentication
  @return a {@link HttpResponse} object containing the response code and
  the response string
  @throws IOException
  if a I/O error occurs