I spend three days in find out how I can connect to an https chunked push servlet and get an inputstream.
The connection with HttpsURLConnection
works and also with HttpClient
but in every programmed code, when I try to get the InputStream of this servlet, this line blocks! No error, no exception, nothing. The debugger only stops at this line and wait.
I know that there is no Content-Length
in the Header of the servlet and I know that this was the reason why the method getInputStream
of URLConnection
blocks.
But now I have no other Idea. Is there anyone who can help me to get this InputStream
from the servlet? All connections are fine with HttpsURLConnection
and HTTPClient
only getting the InputStream Fails and I don't know why.