Line | |
---|
1 | #include <fcgi_stdio.h> |
---|
2 | #include <iostream> |
---|
3 | #include "wutils.h" |
---|
4 | // g++ testfastgci.cpp -I../trunk ../trunk/libwutils.a -lfcgi |
---|
5 | int main(void) |
---|
6 | { |
---|
7 | int count = 0; |
---|
8 | while(FCGI_Accept() >= 0) |
---|
9 | { |
---|
10 | printf("Content-type: text/html\r\n"); |
---|
11 | printf("\r\n"); |
---|
12 | printf("Hello world!<br>\r\n"); |
---|
13 | printf("REquest number %d.<br>\r\n", count++); |
---|
14 | std::string s = envtostr("QUERY_STRING"); |
---|
15 | printf("query string: %s \n",s.c_str()); |
---|
16 | |
---|
17 | } |
---|
18 | return 0; |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.