IOException: “Received authentication challenge is null” (Apache Harmony/Android)

前端 未结 4 1334
北荒
北荒 2020-12-01 06:11

I am trying to send a GET via Android\'s HttpURLConnection (imported from org.apache.harmony.luni.internal.net.www.protocol.http.

4条回答
  •  不知归路
    2020-12-01 07:01

    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).

提交回复
热议问题