Link to home
Start Free TrialLog in
Avatar of cMan
cMan

asked on

500 server error

When I execute a very simple cgi program(By submitting a form)written in c++ using personal web server, I get
500 server error. What could cause this?
Here's my code.
For obvious reasons I like to start out with something simple,
and here it is.

#include"iostream.h"


void main()
{
cout <<"Content-type:text/html\n\n";
cout <<"<html>\n";
cout <<"<head>\n";
cout <<"<title>";
cout <<"CGI Output";
cout <<"</title>\n";
cout <<"</head>\n";
cout <<"<body>\n";
cout <<"CGI Output\n";
cout <<"</body>\n";
cout <<"</html>\n";
}
ASKER CERTIFIED SOLUTION
Avatar of faster
faster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial