hi Roland & Oleg thank you so much for your much appreciated help!
i guess i got cought in the details of the multipart capabilities of the httpclient api that i simply didn't see i could just pass on the stream 'as is' freom the incoming request. thanks again, i'll enjoy the weekend much better now ;-) cheers alessandro -----Original Message----- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Friday, February 16, 2007 5:34 PM To: HttpClient User Discussion Subject: Re: IllegalStateException: Content must be set before entity is written Oleg Kalnichevski wrote: >> On 2/15/07, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> wrote: >>> hi there >>> >>> i'm traing to send a multipart reqest using the >>> InputStreamRequestEntity in httpclient 3.0.1. > [...] > > If > your intention is to post all file items as a multipart coded request, > please consider using MultipartRequestEntity. Good point. Come to think of it: if you are getting a multipart request in your servlet and want to send it on as a multipart request, why do you bother parsing it at all? You could pass servletRequest.getInputStream() to the InputStreamRequestEntity. cheers, Roland --------------------------------------------------------------------- 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]
