Thomas That would cause the total Content-Length to be miscalculated. Actually, any sane cgi script or servlet *should* ignore Content-Length when parsing multipart/form-data request body. But you never know what side-effects an invalid Content-Length value might cause. So, proceed with caution.
Cheers Oleg >I tried it but there is a problem to integrate the method getLength() >because I don't know the length of the InputStream. What are the problems if >this method returns 0 (I'm sure there will be some!)? > >Thomas > >-----Ursprüngliche Nachricht----- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Gesendet: Donnerstag, 20. Februar 2003 21:15 >An: Commons HttpClient Project >Betreff: Re:MultipartPostMethod > > >Thomas >Unfortunately it is not possible. The framework is there, though. One only >needs to create a class that implements PartSource interface > >Oleg > >>I want to create a multipart post with an InputStream instead of a File. >>Is that possible? >> >>Thomas >> > >--------------------------------------------------------------------- >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]