#include<stdio.h>
#include<stdlib.h>
int main()
{
char *p;
#define sgetenv(x) ((p=getenv(x))?p:"VARIABLE NOT SET")
#define igetenv(x) ((p=getenv(x))?p:"0")
printf("Content-Type: text/plain/r/n/r/n");
printf("Hello, world/n");
printf("SERVER_SOFTWARE=%s /n",sgetenv("SERVER_SOFTWARE"));
printf("REMOTE_ADDR=%s /n",sgetenv("REMOTE_ADDR"));
printf("REMOTE_HOST=%s /n",sgetenv("REMOTE_HOST"));
printf("REQUEST_METHOD=%s /n",sgetenv("REQUEST_METHOD"));
printf("QUERY_STRING=%s /n",sgetenv("QUERY_STRING"));
printf("CONTENT_LENGTH=%s /n",sgetenv("CONTENT_LENGTH"));
int i=atoi(igetenv("CONTENT_LENGTH"));
char *p3=new char[i+1];
gets(p3);
printf("FFF=%s /n",p3);
return 0;
}