CGI
This commit is contained in:
9
cgi/hello.py
Normal file
9
cgi/hello.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
code = 200
|
||||
ct = "text/html"
|
||||
content = "<!DOCTYPE html><html><body><h1>Bonjour!</h1></body></html>"
|
||||
print(f"HTTP/1.1 {code}")
|
||||
print(f"Content-Type: {ct}")
|
||||
print(f"Content-Length: {len(content)}")
|
||||
print()
|
||||
print(content)
|
||||
Reference in New Issue
Block a user