by smallpipe · 1y ago · 0 comments
while true; do; sleep 5; curl http://susam.net:8000 ; done
curl: (1) Received HTTP/0.9 when not allowed
curl: (1) Received HTTP/0.9 when not allowed
curl: (7) Failed to connect to susam.net port 8000 after 11 ms: Couldn't connect to server
curl: (56) Recv failure: Connection reset by peer
curl: (7) Failed to connect to susam.net port 8000 after 8 ms: Couldn't connect to server
curl: (1) Received HTTP/0.9 when not allowed
curl: (7) Failed to connect to susam.net port 8000 after 8 ms: Couldn't connect to server
curl: (1) Received HTTP/0.9 when not allowed
curl: (7) Failed to connect to susam.net port 8000 after 10 ms: Couldn't connect to server
curl: (7) Failed to connect to susam.net port 8000 after 11 ms: Couldn't connect to server
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
curl: (1) Received HTTP/0.9 when not allowedI'd've said the benefit is that it's simply a concise single command instead of a "while true" loop and a "sleep 5" command.