home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / XIOS213C / CGI-SRC / TESTCGI7.C < prev   
Text File  |  1997-07-30  |  1KB  |  37 lines

  1. /*  ----------------------------------------------------------------<Prolog>-
  2.     Name:       testcgi7.c
  3.     Title:      CGI test program
  4.     Package:    Xitami web server
  5.  
  6.     Written:    97/05/09  Pieter Hintjens <ph@imatix.com>
  7.     Revised:    97/07/30  Pieter Hintjens <ph@imatix.com>
  8.  
  9.     Synopsis:   Simulates a looping CGI process.  Use it to test the server's
  10.                 response to a looping CGI process.  You can end the program
  11.                 by creating an empty file called 'break'.
  12.  
  13.     Copyright:  Copyright (c) 1997 iMatix
  14.     License:    This is free software; you can redistribute it and/or modify
  15.                 it under the terms of the XITAMI License Agreement as provided
  16.                 in the file LICENSE.TXT.  This software is distributed in
  17.                 the hope that it will be useful, but without any warranty.
  18.  ------------------------------------------------------------------</Prolog>-*/
  19.  
  20. #include "sfl.h"
  21.  
  22. int
  23. main (int argc, char *argv [])
  24. {
  25.     file_delete ("break");
  26.     while (!file_exists ("break"));
  27.     file_delete ("break");
  28.  
  29.     puts ("Content-Type: text/html");
  30.     puts ("");
  31.     puts ("<HTML><BODY>");
  32.     puts ("Testcgi7 was able to complete normally.");
  33.     puts ("</BODY></HTML>");
  34.  
  35.     return (EXIT_SUCCESS);
  36. }
  37.