Skip to content

Instantly share code, notes, and snippets.

@benlieb
Last active December 16, 2015 05:49
Show Gist options
  • Save benlieb/5386736 to your computer and use it in GitHub Desktop.
Save benlieb/5386736 to your computer and use it in GitHub Desktop.
Map<String,List<String>> headers = urlConnection.getHeaderFields();
for (String key : headers.keySet()) {
Log.v("key", key + " : ");
for (String value : headers.get(key)) {
Log.v("value", value);
}
}
V/key(2559): null :
HTTP/1.1 200 OK
Accept-Ranges :
bytes
Cache-Control :
private,max-age=86400
Content-Disposition :
attachment; filename="04Left_Turning_Check_Step.m4v";
Content-Range :
bytes 0-7019776/7019777
Content-Type :
application/octet-stream;charset=UTF-8
Date :
Mon, 15 Apr 2013 08:39:06 GMT
Last-Modified :
Wed, 02 Jan 2013 18:40:09 GMT
Pragma :
cache
Server :
SSWS
Set-Cookie :
JSESSIONID=0B1D0CFFD975ED2736BFF7BBC23ACD96.V5; Path=/; HttpOnly
SS_MID=5a7bd305-4ac1-4d4d-98a3-67fa26c0db56hfje5d3d; Domain=.tangoberretin.com; Expires=Thu, 13-Apr-2023 08:39:06 GMT; Path=/
WebPersCookie=WIo8mRMTANAAke3GEsDOsONkGZoRcVvqpC4Am/pl/3WFB9hSEGH5DfGiDSKJDLc2nbZBpWFy3/Yfb3s=; path=/
Transfer-Encoding :
chunked
Vary :
Accept-Encoding
X-Android-Received-Millis :
1366015147201
X-Android-Sent-Millis :
1366015146842
X-ServedBy :
web115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment