Is there a way to get the value of a specific header using the HttpResponse object returned by the HttpClient execute() method in Andr
There are several ways to get specific headers. HttpResponse inherits from HttpMessage, which provides the following header retrieval methods:
In your case, you probably want getFirstHeader(String). Headers can contain multiple values, hence the Header[] array return from getHeaders(); if you only expect there to be a single header, getFirstHeader(String) should suffice.