Tho following
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat /tmp/index.html; } | nc -l 8080; done
gives
nc: bad address '-l'
with busybox-nc
and
Error: Couldn't resolve host "8080"
with original nc (opkg install netcat)
But on my desktop it works....
Here is the wiki-entry: netcat/busybox-netcat as web server on OpenWrt
(Last edited by kirschwasser on 17 Aug 2013, 10:18)