#!/usr/bin/perl -n

# 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;
s{\\(.)}{$1}g;
print or die $!;

