From: Ian Jackson Date: Sat, 1 Apr 2017 12:24:04 +0000 (+0100) Subject: wip debug X-Git-Tag: hippotat/1.0.0~55^2~187 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=sidebyside;h=31bad7699b7abe4490c1754e9995e079974484d3;p=hippotat.git wip debug --- diff --git a/w3mstracetodump b/w3mstracetodump index fdf28eb..907af4f 100755 --- a/w3mstracetodump +++ b/w3mstracetodump @@ -2,8 +2,11 @@ # strace -s70000 -ot w3m ./form.html -next unless s{^write\(7, "}{}; -next unless m/^POST|GET/..0; +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;