cgi written in c

This commit is contained in:
David
2015-08-26 17:39:04 -07:00
parent 4cc2c8e712
commit 96f48cbcf1

16
c/cgi.c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
main ()
{
printf ("Content-type: text/html\n");
printf ("\n");
printf ("<html>\n");
printf ("<head>\n");
printf ("<title>Hello, world</title>\n");
printf ("</head>\n");
printf ("\n");
printf ("<body>\n");
printf ("<h1>Hello, world</h1>\n");
printf ("</body>\n");
printf ("</html>\n");
}