source: testjes/testfastgci.cpp @ 10

Last change on this file since 10 was 10, checked in by willem, 11 years ago

willem

File size: 451 bytes
Line 
1#include <fcgi_stdio.h>
2#include <iostream>
3#include "wutils.h"
4// g++ testfastgci.cpp -I../trunk ../trunk/libwutils.a -lfcgi
5int 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  }
18return 0;
19}
Note: See TracBrowser for help on using the repository browser.