Socat Bash Http Server
This repository contains a very simple bash socat http server.
Socat is used to forward incoming data from a tcp port(8080) to the bash script.
The bash script extract headers and body and writes the information into environment variables.
Based on the request path, files are executed and the response is sent back to the client.
- -v : turn on verbose logging to stderr
- -p <port number> : port (default: 8080)
- -r <path> : path for route handlers
- -d <path> : path to default route handler script