mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🏗️」 wip: cgi workinggg
This commit is contained in:
6
test.py
Normal file → Executable file
6
test.py
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/nix/store/kjvgj2n3yn70hmjifg6y0bk9m4rf7jba-python3-3.12.10/bin/python3
|
||||
|
||||
# Import modules for CGI handling
|
||||
import cgi
|
||||
@ -11,7 +11,9 @@ cgitb.enable()
|
||||
form = cgi.FieldStorage()
|
||||
|
||||
# Set the content type to HTML
|
||||
print("Content-Type: text/html\n")
|
||||
print("Content-Type: text/html")
|
||||
|
||||
print("")
|
||||
|
||||
# Output a simple HTML page
|
||||
print("<html>")
|
||||
|
Reference in New Issue
Block a user