Most of my Android apps have multiple and sometimes a dozen or so of backend Get, POST and other http api calls. Part of debugging them is figuring out http header request and response data. This code snippet below is a useful utility method that allows you to log out http headers:
public static void logHttpHeaders(Header[] headers)
{
Log.d(TAG,"Logging http headers: " + headers.length );
for (int i = 0; i < headers.length; i++)
{
Header h = headers[i];
Log.d(TAG,"Header: " + h.getName() + " " + h.getValue());
}
}