Skip to content

Instantly share code, notes, and snippets.

@qct
Last active January 2, 2018 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qct/161abec1f8a5220d9888e119cd88a59d to your computer and use it in GitHub Desktop.
Save qct/161abec1f8a5220d9888e119cd88a59d to your computer and use it in GitHub Desktop.
// Save a copy of this request for debugging.
requestDump, err := httputil.DumpRequest(req, true)
if err != nil {
  fmt.Println(err)
}
fmt.Println(string(requestDump))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment