summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-05-11 13:29:07 +0800
committerRunxi Yu <me@runxiyu.org>2024-05-11 13:29:07 +0800
commit690be90e79647dbf35a9bc10ac63a9533cc4b58c (patch)
treed409b9f07bcd7b2e2ebbcbd9a563e88e390171ab
parent4d7a1a3ca2a27b14d0b408e946baa8a8ddb42fe9 (diff)
downloadwww-690be90e79647dbf35a9bc10ac63a9533cc4b58c.tar.gz
Let me see the env again... shell
-rwxr-xr-xhybrid.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/hybrid.cgi b/hybrid.cgi
index 49ede51..d1ec583 100755
--- a/hybrid.cgi
+++ b/hybrid.cgi
@@ -1,3 +1,8 @@
+#!/bin/sh
+printf "Content-Type: text/plain\r\n\r\n"
+env
+
+exit 0
 #!/usr/bin/env python3
 
 import sys
@@ -6,5 +11,6 @@ import os
 sys.stdout.write("Content-Type: text/plain\r\n")
 sys.stdout.write("\r\n")
 
-import pprint
-pprint.pprint(os.environ)
+QUERY_STRING = os.environ["QUERY_STRING"]
+REQUEST_METHOD = os.environ["REQUEST_METHOD"]
+CONTENT_TYPE = os.environ["CONTENT_TYPE"]