Apache Web server for windows
I wrote a helloworld.pl and that works fine when i try to view it through a webbrowser.
I then wrote the following:
#include <iostream>
using namespace std;
int main()
{
cout << "Content-type: text/plain" << endl << endl
<< "Hello, World!";
return 0;
}
compiled using g++ (cygwin).
when run through command prompt i get:
Content-type: text/plain
Hello, World!
when i try to open http://localhost/cgi-bin/hello.exe:
i get 500 Internal Server Error.
when looking through the error log, the only error there is:
[Sat Nov 20 13:38:16 2004] [error] [client 127.0.0.1] Premature end of script headers: hello.exe
Can anyone please help me out?