Ok., I fixed the problem, I needed to setHttp() to true and the additional params for FilePart were not necessary for my needs.
FilePart p = new FilePart(FILENAME_FIELD, fileForUpload); p.setTransferEncoding(null); method.setHttp11(true); method.addPart(p); ----- Original Message ----- From: "Eric Mckenna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: March 08, 2004 8:17 PM Subject: Having Trouble with MultipartPostMethod > Greetings, > > Having some trouble with transferring a file to another server. > > Here's the flow: > User submits excel doc to ServerA > ServerA get post, creates MultipartPost and posts to ServerB. > ServerB saves the file received, but when opened the encoding is all wrong. > The data is there but "No Alderan" > > Submitting the file directly to ServerA or ServerB is fine. The file can be > read by excel. From what I can tell, > I'm doing something incorrectly with creation of the MultipartPost before > transmission to the other server. > Here's some code of what I'm doing: > > MultipartPostMethod method = new MultipartPostMethod(buildURL(getPath())); > method.setFollowRedirects(false); > ... > ... > MultiPartRequestWrapper request = > ServletActionContext.getMultiPartRequest(); > fileForUpload = request.getFile(FILENAME_FIELD); > FilePart p = new FilePart(fileForUpload.getName(), fileForUpload,null, > null); > p.setTransferEncoding(null); > method.addPart(p); > > ServerA is IIS:Tomcat 4.1.29 > SeverB is WebLogic8.1 > jdk 1.4.1 > > > Thanks, > eric. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]