On Fri, 2006-05-26 at 15:50 +0200, gerhard oettl wrote: > >> I tried to receive/handle a POST request via HttpService.doService > >> (extending the "GET" of the ElementalHttpServer example) > > >Many thanks for tracking this bug down. I have applied a fix for the > >problem it in the SVN trunk. Please get the latest SVN snapshot off the > >SVN trunk and let me know if that solves the problem for you. > > Yes it works now, but it is a little hard to get the content (see > attached patch how i tried this). It would be nice to have not > only the getContent() -> InputStream, but something like > getContentAsString(). >
Hi Gerhard, Thanks for the feedback. Actually the recommended way to convert an entity to a string or an array of bytes is by using static methods in the EntityUtils helper class http://jakarta.apache.org/httpcomponents/http-core/apidocs/org/apache/http/util/EntityUtils.html Cheers, Oleg > But dont expect too much from my feedback because i am absolutely > unexperienced und stumbled over httpcore accidently. What i can > say is that in my tests it worked out of the box and (in contrast > to httpclient) without any dependies. Having a more convenient > method - or write one myself, which would not bee to hard with > the given interface - to get the content of a posted entity would > fit my needs. In the meantime i decited that the minimal needs > that i have could be satified without any tool outside the core > java language, but if my needs grows than httcore will be the > first choice that i would try. > > > gerhard > > --------------------------------------------------------------------- > 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]
