This commit is contained in:
cdricms
2024-11-19 16:28:54 +01:00
parent a4f779d5d7
commit 7b52f5de7d
7 changed files with 71 additions and 33 deletions

9
cgi/hello.py Normal file
View 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)