Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A minimal netcat web server that prints everything it gets
httplogger() {
while true; do
echo -e "HTTP/1.1 200 OK\r\n\r\nok" | nc -vl 8989
test $? -gt 128 && break
echo
echo '----------------------------------------'
done
echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment