Blog: 2025-11-28

From razwiki
Revision as of 00:13, 28 November 2025 by Razzi (talk | contribs) (Created page with "This cgi script <pre> hack $ cat cgi-bin/hello.py #!/usr/bin/env python3 print('Content-type: text/html') print() print('<h2>WHOA</h2>') </pre> This server command python3 -m http.server --cgi 8000 Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This cgi script

hack $ cat cgi-bin/hello.py 
#!/usr/bin/env python3
print('Content-type: text/html')
print()
print('<h2>WHOA</h2>')

This server command

python3 -m http.server --cgi 8000

Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server