I'm trying simple example -
#include <stdio.h>
int main(void)
{
printf("Content-type: text/html\n\n");
printf("<html><title>Hello</title><body>\n");
printf("Goodbye Cruel World\n");
printf("</body></html>");
return 1;
}
compiled and moved to apache docroot - but when i click on url - it comes as a popup and asks where to download/save this binary file? how to fix this?