Skip to content

Instantly share code, notes, and snippets.

@sulincix
Created April 30, 2024 11:05
Show Gist options
  • Save sulincix/b55bcc03f69fd4d69de29a2a2236a637 to your computer and use it in GitHub Desktop.
Save sulincix/b55bcc03f69fd4d69de29a2a2236a637 to your computer and use it in GitHub Desktop.
http text stream using busybox netcat
#!/bin/bash
{
echo -ne "HTTP 1.1 200 OK\n\r"
echo -ne "Content-type: text/event-stream\n\n"
cat
} | busybox nc -l -p 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment