I spend three days to find out how I can connect to https chunked push servlet and get the input stream. The connection to the HttpsURLConnection works, as well as to the HttpClient but in every programmed code, when I try to get the InputStream of this servlet, this line is blocked! No mistake, no exception, nothing. The debugger stops only on this line and waits.
I know that there is no Content-Length in the servlet header, and I know that it is for this reason that the getInputStream method of URLConnection blocks is blocked.
But now I have no other idea. Is there anyone who can help me get this InputStream from a servlet? All connections are ok with HttpsURLConnection and HttpClient , only getting InputStream Fails , and I don't know why.
source share