home *** CD-ROM | disk | FTP | other *** search
-
- /* hello.c: a minimal stdio CGI program */
-
- #include <stdio.h>
-
- int main (argc, argv)
- int argc;
- char *argv[];
- {
- /*
- IMPORTANT: always output the MIME header(s) first,
- terminated by two newlines
- */
- printf("Content-type: text/html\n\n");
-
- printf("<HTML>\n");
- printf("<HEAD>\n");
- printf("<TITLE>Hello, CGI World!</TITLE>\n");
- printf("</HEAD>\n");
- printf("<BODY>\n");
- printf("<H1>Hello, CGI World!</H1>\n");
- printf("</BODY>\n");
- printf("</HTML>\n");
-
- return 0;
- }
-