I am trying to make a BaseHTTPServer program. I prefer to use Python 3.3 or 3.2 for it. I find the doc hard to understand regarding what to import but tried changing the import
You can just do like that:
self.send_header('Content-type','text/html'.encode()) self.end_headers() # Send the html message self.wfile.write("Hello World !".encode())