Created
April 30, 2024 11:05
-
-
Save sulincix/b55bcc03f69fd4d69de29a2a2236a637 to your computer and use it in GitHub Desktop.
http text stream using busybox netcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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