Skip to content

Instantly share code, notes, and snippets.

@lesterlo
Created August 22, 2025 15:05
Show Gist options
  • Save lesterlo/722a495df61a21d83d8e98ac7ca6fbc7 to your computer and use it in GitHub Desktop.
Save lesterlo/722a495df61a21d83d8e98ac7ca6fbc7 to your computer and use it in GitHub Desktop.
A simple script to test the http request
while true; do
# Wait for a connection on port 8443
nc -l -p 65443 <<EOF
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 13
Hello, world!
EOF
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment