Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import http.server as BaseHTTPServer
- import http.server as CGIHTTPServer
- import cgitb
- cgitb.enable()
- server = BaseHTTPServer.HTTPServer
- handler = CGIHTTPServer.CGIHTTPRequestHandler
- server_address = ("192.168.1.3", 80)
- handler.cgi_directories = ["/cgi-bin"]
- httpd = server(server_address, handler)
- httpd.serve_forever()
- import cgi
- import cgitb
- print("""
- <html>
- <head>
- </head>
- <body>
- <h1 aling = "center">HELLO, STACKOVERFLOW!!</h1>
- </body>
- </html>
- """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement