Jump to content

Python : Error 500


Recommended Posts

#!/usr/bin/python
print "Bienvenue sur mon site web !"

The main problem on your code is that, you haven't declared the content type and the semi-colon(; ) is missing in the content. Please add the following line exactly after the shebang line:

print "Content-type: text/plain\n\n";

After adding the above line and ";" to the content line, your code will look like:

#!/usr/bin/python
print "Content-type: text/plain\n\n";
print "Bienvenue sur mon site web !";

I've copied your code to my website and your code worked fine after adding

print "Content-type: text/plain\n\n";

line. Take a look at www.sagnikganguly.ga/cgi-bin/to175.py

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...