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 second time it hangs at the execute step. Other similar scenarios work fine repeatedly, but in on particular case it hangs second time through. I was thinking it might be due to the response not being closed but I can't find any cases where this could be the case.

Any suggestions what to look for and how to debug this?

Thanks
Tim



Reply via email to