The linux command
nc -l 8090 | (read METHOD URI PROTOCOL ; echo "method: $METHOD" ; echo "path: $URI" ; echo "prot: $PROTOCOL")
listens to port 8090 and when I type something like
http://127.0.0.1:8090/path/to/nowhere into my browser it prints out some infos about the HTTP-Request in the terminal. I can type something in the terminal window now which after Ctrl+C will be shown in the browser.
What I want is to pipe the output of the echo commands back to the stdin of nc, so it will be displayed in the browser. Is there any way to do this?