~ubuntu-branches/ubuntu/hardy/lighttpd/hardy-updates

« back to all changes in this revision

Viewing changes to tests/fcgi-responder.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2006-12-08 14:40:42 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061208144042-3z5kr9pe0kya5lgu
Tags: 1.4.13-6ubuntu1
* Merge from debian unstable, remaining changes:
  - Replace Depends: on perl with Depends: on libterm-readline-perl-perl

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
int main () {
12
12
        int num_requests = 2;
13
 
        
 
13
 
14
14
        while (num_requests > 0 &&
15
15
               FCGI_Accept() >= 0) {
16
16
                char* p;
17
 
                
 
17
 
18
18
                if (NULL != (p = getenv("QUERY_STRING"))) {
19
19
                        if (0 == strcmp(p, "lf")) {
20
20
                                printf("Status: 200 OK\n\n");
37
37
                } else {
38
38
                        printf("Status: 500 Internal Foo\r\n\r\n");
39
39
                }
40
 
                 
 
40
 
41
41
                printf("test123");
42
42
        }
43
 
        
 
43
 
44
44
        return 0;
45
45
}