python simple http code example Example 1: python http server command line python -m SimpleHTTPServer Example 2: simplehttpserver python -m SimpleHTTPServer 8000