DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22421>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22421 MultiPartPostMethod sends a different file than the one from file system ------- Additional Comments From [EMAIL PROTECTED] 2003-08-14 14:54 ------- Assuming that you are using the latest release of HttpClient(2.0rc1) I belive this is caused by the content-type and transfer-encoding. I have noticed that some servers cannot handle a multi-part post that contains these values. Currently the only way to disable them is to extend FilePart in the following way: class MyFilePart extends FilePart { public MyFilePart(String name, PartSource partSource) { super(name, partSource); } public String getTransferEncoding() { return null; } public String getContentType() { return null; } } Then use MyFilePart when adding the file to the MultipartPostMethod via addPart(). Please give this a shot and let me know. Thanks, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]