Python Cgi Programming

isurum17

New Member
Messages
1
Reaction score
0
Points
0
I am learning cgi python programming and I did put my test.py file in the cgi folder in free hosting service with following code.
Code:
#!/usr/bin/python

print "Content-type:text/html\r\n\r\n"
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>'

But it gives,

Code:
Forbidden

You don't have permission to access /cgi-bin/test.py on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

my link is http://www.ztron.x10.mx/cgi-bin/test.py
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Python and Perl have been disabled on the Free Servers and apparently will not be enabled.
 
Top