How to get InputStream https, chunked Push Servlet?

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.

+4
source share
1 answer

The problem is solved! Epic Fail: before I connect to the server to get a response, I need to connect to another servlet in order to start a session, than save the cookie and continue. I used HttpsURLConnection and it works quietly ... Fazit: Streaming works well on Android

+1
source

All Articles