diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/web/cgi/index.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/web/cgi/index.sh b/src/web/cgi/index.sh new file mode 100755 index 0000000..f853ead --- /dev/null +++ b/src/web/cgi/index.sh @@ -0,0 +1,30 @@ +#!/bin/sh +set -eu + + +cat <<-'EOF' + Content-Type: text/html; charset=UTF-8 +EOF + +printf '\n' + +cat <<-'EOF' + <!DOCTYPE html> + <html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <title>CGI sh!</title> + </head> + <body> + <p>Hello, CGI World!</p> + <p><pre> +EOF + +echo env + +cat <<-'EOF' + </pre></p> + </body> + </html> +EOF |