Get header from HttpResponse in Android

后端 未结 5 2033
醉话见心
醉话见心 2020-12-31 09:56

Is there a way to get the value of a specific header using the HttpResponse object returned by the HttpClient execute() method in Andr

5条回答
  •  醉话见心
    2020-12-31 10:37

    Please try HttpResponse.getAllHeaders() for printing headers and for printing cookie in Headers.

    response.getHeaders("Set-Cookie")
    

提交回复
热议问题