add to ~/.bashrc:
urldump() {
sudo tcpdump -i any -A -s 0 -l 'tcp' | awk '/GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH.*HTTP/ {match($0, /(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH) ([^ ]+)/, arr); method=arr[1]; url=arr[2]} /^Host:/ {if(method) {print method, $2 url; method=""}}'}GET localhost:8080/
GET localhost:5172/foo/bar
GET localhost:8080/index.html?foo=bar