summaryrefslogtreecommitdiff
path: root/src/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgi')
-rwxr-xr-xsrc/cgi/tags.cgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cgi/tags.cgi b/src/cgi/tags.cgi
new file mode 100755
index 0000000..7c18c8c
--- /dev/null
+++ b/src/cgi/tags.cgi
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo "Content-Type: text/html"
+echo ""
+
+echo "<!DOCTYPE html>"
+echo "<html><head><meta charset='utf-8'><title>Привет</title></head><body>"
+echo "<h1>Привет из CGI на Bash!</h1>"
+
+# Показать переменные окружения (например QUERY_STRING)
+echo "<pre>"
+env
+echo "</pre>"
+
+echo "</body></html>" \ No newline at end of file