input the following command:
wgz@wgz:/tmp/test$ python3 -m http.server --bind localhost --cgi
file cgi.html
file cgi_test.py
#! /usr/bin/env python3
print('Content-type: text/html\n')
print('hello world')
input the following command:
wgz@wgz:/tmp/test$ python3 -m http.server --bind localhost --cgi
file cgi.html
file cgi_test.py
#! /usr/bin/env python3
print('Content-type: text/html\n')
print('hello world')