python http.server get request code example Example 1: http.server python python -m http.server 8000 Example 2: python http server python3 -m http.server 8000