This below code is my html.py
file in my cgi-bin directory.
print "Content-type:text/html"
print '<html>'
print '<head>'
print '<title>Hello Word - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello Word! This is my first CGI program</h2>'
print '</body>'
print '</html>'
I started my server using the below command:
python -m CGIHTTPServer 8000
And I'm opening my html.py
file in my browser like below.
When I'm checking in network , it is showing 200 OK, but I'm not getting any response. Do I need to configure anything to run the scripts?
I'm new to python. Please help me resolve this issue.