On Thu, 2015-08-06 at 17:17 +0100, Tim Dudgeon wrote: > I'm not sure I really understand. > Being repeatable refers to whether the content can be read more than once?
Various types of HTTP entities are described here http://hc.apache.org/httpcomponents-client-4.5.x/tutorial/html/fundamentals.html#d5e95 > This does not appear to be the problem. > I looked at the network traffic and the content looks to be quite > different for the 2 approaches. > Is using InputStreamEntity a valid way to send (large) text based data > (e.g. json)? > It is generally preferred to build a custom self-contained, repeatable HTTP entity representation rather than using InputStreamEntity, but InputStreamEntity is also perfectly fine as long as one is aware of its limitations (like in case of an automatic request re-execution due to an authentication error or an i/o error only the first execution can have a valid representation of the entity). For further trouble-shooting see this http://hc.apache.org/httpcomponents-client-4.5.x/logging.html Oleg > Tim > > On 05/08/2015 18:09, Oleg Kalnichevski wrote: > > On Wed, 2015-08-05 at 12:15 +0100, Tim Dudgeon wrote: > >> I'm having a strange problem with using InputStreamEntity for a POST > >> operation. > >> If I use a StringEntity the operation works fine. > >> If I use an InputStreamEntity based on the same content then no content > >> gets POSTed. > >> Any ideas why? > >> > > StringEntity is repeatable whereas InputStreamEntity is not. > > > > Oleg > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org