Last active
August 29, 2018 11:02
-
-
Save vmanyushin/ba48466e82e68ae6f5218d4ec0067c01 to your computer and use it in GitHub Desktop.
Dump http request with headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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