--- parser3/src/targets/cgi/parser3.C 2001/03/18 16:32:26 1.20 +++ parser3/src/targets/cgi/parser3.C 2001/03/19 16:06:15 1.24 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.20 2001/03/18 16:32:26 paf Exp $ + $Id: parser3.C,v 1.24 2001/03/19 16:06:15 paf Exp $ */ #ifdef HAVE_CONFIG_H @@ -20,9 +20,9 @@ #include #include +#include "pa_common.h" #include "pa_globals.h" #include "pa_request.h" -#include "pa_common.h" Pool pool; // global pool bool cgi; @@ -86,7 +86,7 @@ void output_body(const char *buf, size_t // main int main(int argc, char *argv[]) { - //TODO: umask(2); + // TODO:umask(2); #ifdef WIN32 _setmode(fileno(stdin), _O_BINARY); _setmode(fileno(stdout), _O_BINARY); @@ -150,6 +150,7 @@ int main(int argc, char *argv[]) { request_info.content_type=getenv("CONTENT_TYPE"); const char *content_length=getenv("CONTENT_LENGTH"); request_info.content_length=(content_length?atoi(content_length):0); + request_info.cookie=getenv("HTTP_COOKIE"); // prepare to process request Request request(Pool(), @@ -183,7 +184,7 @@ int main(int argc, char *argv[]) { // request.exception not not handled here, but all // request' data are associated with it's pool=exception - // must be last in PTRY{}PCATCH + // must be last in PTRY{}PCATCH #ifdef WIN32 # if _MSC_VER SetUnhandledExceptionFilter(0); @@ -192,11 +193,6 @@ int main(int argc, char *argv[]) { return 0; #endif } PCATCH(e) { // global problem - // @globals fill - // @Request create - // @prepare to .core() - // @request.core when reporting request exception - // @write result const char *body=e.comment(); int content_length=strlen(body);