Python is a simple web server implementation method.
It is the best option to build a web test using python commands as a temporary test;
CD to switch to the current directory requires only one python command to quickly build a simple web server. python linux comes with no additional configuration and installation;
Enable web Server commands in python
Python-m SimpleHTTPServer 8080
You can specify any unused port number, but the port must pass the firewall;
After running the preceding command, enter the IP address and port number.
Http: //: Port Number/path, for example, http: // 192.168.0.12/8080
If the index file does not exist, it supports the directory list.
This python server contains:
BaseHTTPServer: provides basic Web services and processor classes, including HTTPServer and BaseHTTPRequestHandler.
SimpleHTTPServer: SimpleHTTPRequestHandler class that executes GET and HEAD requests.
CGIHTTPServer: contains the class for processing POST requests and executing CGIHTTPRequestHandler.