Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Created August 13, 2014 20:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chris-piekarski/3a92d5cf17ac1e1bbe98 to your computer and use it in GitHub Desktop.
Save chris-piekarski/3a92d5cf17ac1e1bbe98 to your computer and use it in GitHub Desktop.
Dump Android HttpRequest Headers To Logcat
public void handle(HttpRequest request, ... ) {
Header[] hdrs = request.getAllHeaders();
for( Header h: hdrs) {
Log.w(TAG, h.getName()+":"+h.getValue());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment