From 70ddd67165eb087a91a868ae67d01cdaf6dfee29 Mon Sep 17 00:00:00 2001 From: jens Date: Mon, 23 Nov 2020 17:23:05 +0100 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonHTTP.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 PythonHTTP.py diff --git a/PythonHTTP.py b/PythonHTTP.py new file mode 100644 index 0000000..1bd3091 --- /dev/null +++ b/PythonHTTP.py @@ -0,0 +1,14 @@ + +import BaseHTTPServer +import CGIHTTPServer +import cgitb; cgitb.enable() + +server = BaseHTTPServer.HTTPServer +handler = CGIHTTPServer.CGIHTTPRequestHandler +server_address = ('',8000) +handler.cgi_directories = ['/info-mon'] +#handler.cgi_directories = ["/cgi-bin/"] + +httpd = server(server_address, handler) +httpd.serve_forever() +