httpd python code example Example 1: http.server python Click to copypython -m http.server 8000 Example 2: http.server python Click to copypython3 -m http.server