Skip to content

Commit a4ce668

Browse files
committed
cgi stuff
Signed-off-by: lucasew <[email protected]>
1 parent 0186796 commit a4ce668

File tree

7 files changed

+32
-0
lines changed

7 files changed

+32
-0
lines changed

cgi/cgi-bin/echo

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Content-Type: text/html"
4+
echo
5+
6+
echo "<p>query $QUERY_STRING</p>"
7+
8+
cat /dev/stdin
File renamed without changes.

cgi/echo

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Content-Type: text/plain\n\n"
4+
5+
echo "Hello, world"

python_cgi/launch cgi/launch

File renamed without changes.

cgi/routers_as_ini/parser.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python3
2+
3+
from configparser import ConfigParser
4+
cfg = ConfigParser()
5+
cfg.read("test.ini")
6+
7+
print(cfg.sections())

cgi/routers_as_ini/test.ini

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[GET:/api/:name/hello]
2+
filename = demo.php
3+
handler = nix-shell

cgi/uwsgi.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[uwsgi]
2+
module = info:application
3+
4+
master = true
5+
processes = 5
6+
http = :8080
7+
vacuum = true
8+
9+
die-on-term = true

0 commit comments

Comments
 (0)