Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Apache/test/modules/http2/htdocs/cgi/     Datei vom 2.4.2023 mit Größe 464 B image not shown  

Quelle  echohd.py   Sprache: Python

 

#!/usr/bin/env python3
import os, sys
from requestparser import get_request_params


forms, files = get_request_params()
name = forms['name'] if 'name' in forms else None

if name:
    print("Status: 200")
    print("""\
Content-Type: text/plain\n"
"")
    print("""%s: %s""" % (name, os.environ['HTTP_'+name]))
else:
    print("Status: 400 Parameter Missing")
    print("""\
Content-Type: text/html\n
<html><body>
<p>No name was specified</p>
</body></html>"
"")



Messung
CHZG
831008288

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland