activeMethod = new PostMethod(fullPostURL);
/* Set HTTP Parameter Cookie to the user provided values (actually current session) */
activeMethod.setRequestHeader("Cookie", policy.getSessionString());
PartSource fps = this.getFilePartSource();
String fileName = fps.getFileName();
Part[] parts = {new FilePart(fileName, fps, null, "UTF-8")};
/* Raise upload started event */
this.notifyListeners(EVT_STARTED, fps.getLength(), 0);
try{
activeMethod.setRequestEntity(new MultipartRequestEntity(parts, activeMethod.getParams()));
HttpClient client = new HttpClient();