home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 May / APC452.ISO / netkit / xitami / xitami.exe / TESTCGI6.C < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-19  |  1.2 KB  |  33 lines

  1. /*  ----------------------------------------------------------------<Prolog>-
  2.     Name:       testcgi6.c
  3.     Title:      CGI test program
  4.     Package:    Xitami web server
  5.  
  6.     Written:    96/10/01  Pieter Hintjens <ph@imatix.com>
  7.     Revised:    97/04/08  Pieter Hintjens <ph@imatix.com>
  8.  
  9.     Synopsis:   Generates an HTML test page containing the arguments passed
  10.                 to the CGI process.
  11.  
  12.                 To build this program you must download the SFL package from
  13.                 www.imatix.com.
  14.  
  15.     Copyright:  Copyright (c) 1997 iMatix
  16.     License:    This is free software; you can redistribute it and/or modify
  17.                 it under the terms of the XITAMI License Agreement as provided
  18.                 in the file LICENSE.TXT.  This software is distributed in
  19.                 the hope that it will be useful, but without any warranty.
  20.  ------------------------------------------------------------------</Prolog>-*/
  21.  
  22. #include "sfl.h"
  23.  
  24. int
  25. main (int argc, char *argv [])
  26. {
  27.     /*  Generates an invalid local location; this should result in a 404     */
  28.     /*  NOT FOUND message on the browser screen.                             */
  29.  
  30.     puts ("Location: default.htm");
  31.     return (EXIT_SUCCESS);
  32. }
  33.