text: import BaseHTTPServer
  
  #-------------------------------------------------------------------------------
  
  class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
      '''Handle HTTP requests by returning a fixed 'page'.'''
  
      # Page to send back.
      Page = '''\
  <html>
  <body>
  <p>Hello, web!</p>
  </body>
  </html>
  '''
  
      # Handle a GET request.
      def do_GET(self):
          self.send_response(200)
          self.send_header("Content-type", "text/html")
          self.send_header("Content-Length", str(len(self.Page)))
          self.end_headers()
          self.wfile.write(self.Page)
  
  #-------------------------------------------------------------------------------
  
  if __name__ == '__main__':
      serverAddress = ('', 8080)
      server = BaseHTTPServer.HTTPServer(serverAddress, RequestHandler)
      server.serve_forever()
  