X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/75fce4757ae3a0996f4fc1e3e6e113a893811aef..1ffdd5d34bbef7659abd4138f021e3b28dc25af4:/w3mstracetodump diff --git a/w3mstracetodump b/w3mstracetodump index bb9305e..907af4f 100755 --- a/w3mstracetodump +++ b/w3mstracetodump @@ -1,7 +1,12 @@ #!/usr/bin/perl -n -next unless s{^write\(7, "}{}; -next unless m/^POST|GET/..0; +# strace -s70000 -ot w3m ./form.html + +next unless + (m/^connect\((\d+),.*AF_INET/ and $fd = $1) .. + m/^close\($fd\)/; + +next unless s{^write\($fd, "}{}; s{", \d+\)\s+= \d+\n}{}; s{\\r}{\r}g; s{\\n}{\n}g;