#!/bin/ch 
#include <stdio.h>
#include <cgi.h>

int main() {
  class CResponse Response;
  class CRequest Request;
  chchar *value, *name;

  Response.begin();
  Response.title("The Result of Test of Request.getServerVariable");
  printf("<H1> The Result of Test of Request.getServerVariable</H1><hr>\n");

  name = Request.getForm("serverVariable");
  printf("The name of Server Variable is : ");
  if (name != NULL)
  { 
      printf("%s <br>\n", name);
      printf("The value of Server Variable is : ");
      value = Request.getServerVariable(name);
      if (value !=NULL)
          printf("%s <br>\n", value);
      else
          printf("NULL <br>\n");
  }
  else
     printf("NULL <p>\n");

  Response.end();
}
