I am trying to send a GET via Android\'s HttpURLConnection (imported from org.apache.harmony.luni.internal.net.www.protocol.http.
HttpURLConnection
org.apache.harmony.luni.internal.net.www.protocol.http.
Maybe will be useful for somebody...
This exception just means malformed answer headers: the "WWW-Authenticate" header was not found. Also, chunked answers with 401 code are not supported, so you'll need "Content-Length" header (can be zero).