echo '== curl 8080 =='
curl -s -m 8 -H "Host: test17.glark.ru" "http://127.0.0.1:8080/" -o /tmp/bk_test.html -w "HTTP %{http_code} size %{size_download}\n"
head -c 300 /tmp/bk_test.html; echo
echo '== curl 8080 with weird host =='
curl -s -m 8 -H "Host: foo.glark.ru" "http://127.0.0.1:8080/" -o /tmp/bk_foo.html -w "HTTP %{http_code} size %{size_download}\n"
grep -oiE '<title>[^<]*</title>' /tmp/bk_foo.html | head -1
echo '== ports via /proc =='
grep -l 'tcp' /proc/net/tcp* 2>/dev/null | head -2
cat /proc/net/tcp 2>/dev/null | awk 'NR>1{split($2,a,":"); if (a[2]!="0000") print strtonum("0x"a[2])}' | sort -un | head -30
echo '== ihttpd args =='
cat /proc/2004/cmdline 2>/dev/null | tr '\0' ' '; echo
ls /usr/local/mgr5/var/run 2>/dev/null
