Skip to content

Instantly share code, notes, and snippets.

@vmanyushin
Last active August 29, 2018 11:02
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 vmanyushin/ba48466e82e68ae6f5218d4ec0067c01 to your computer and use it in GitHub Desktop.
Save vmanyushin/ba48466e82e68ae6f5218d4ec0067c01 to your computer and use it in GitHub Desktop.
Dump http request with headers
tcpdump -i any port 80 -A | grep -A 10 -P '(GET|POST|OPTIONS|PUT|DELETE).*?HTTP/1.[01]' | perl -ne 's/^.*?(?=(GET|POST|OPTIONS|PUT|DELETE))//g; print;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment