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?
Example would be like this:
String source = "hello";
InputStrea
send (large) text based data
(e.g. json)?
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.
I
Hi, I'm having problems with a POST operation that's being done along
these lines:
HttpPost post = new HtttpPost("http://.";);
post.addHeader("name", "value"); // etc
post.setEntity( ... );
CloseableHttpResponse resp = httpClient.execute(post);
...
First time the operation works fine. But a
On 25/05/2016 13:54, Oleg Kalnichevski wrote:
Tim,
Please post wire / context log of the session.
Oleg
I found the issue eventually. It was due a leaking connection
(InputStream not being closed).
The problem was masked by no timeout being applied to getting a
connection so it hung forever