X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=blobdiff_plain;f=www-cgi%2Fucgicommon.c;h=4a8749a017eebd3c5b30db3b4d2289df913f2181;hp=ba9747484d348024546df54a28a981321cad8fac;hb=70cbc32a4f453b7fcf55408a4d3c4153f33c4224;hpb=6a580c177a1b3b7f53daf402d97b491d462db8c3 diff --git a/www-cgi/ucgicommon.c b/www-cgi/ucgicommon.c index ba97474..4a8749a 100644 --- a/www-cgi/ucgicommon.c +++ b/www-cgi/ucgicommon.c @@ -1,23 +1,53 @@ -/**/ +/* + * Copyright (C) 1998-1999,2003 Ian Jackson + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with userv-utils; if not, write to the Free Software + * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + */ #include #include +#include #include "ucgi.h" const char *const envok[]= { + "AUTH_TYPE", "CONTENT_LENGTH", "CONTENT_TYPE", "DOCUMENT_ROOT", "GATEWAY_INTERFACE", "HTTP_ACCEPT", + "HTTP_ACCEPT_CHARSET", "HTTP_ACCEPT_ENCODING", "HTTP_ACCEPT_LANGUAGE", "HTTP_CACHE_CONTROL", + "HTTP_CONNECTION", + "HTTP_CONTENT_ENCODING", + "HTTP_COOKIE", + "HTTP_DNT", "HTTP_HOST", + "HTTP_KEEP_ALIVE", "HTTP_NEGOTIATE", "HTTP_PRAGMA", + "HTTP_REFERER", "HTTP_USER_AGENT", + "HTTP_VIA", + "HTTP_X_FORWARDED_FOR", + "HTTPS", "PATH_INFO", "PATH_TRANSLATED", "QUERY_STRING", @@ -26,14 +56,17 @@ const char *const envok[]= { "REMOTE_USER", "REMOTE_IDENT", "REQUEST_METHOD", + "REQUEST_URI", "SCRIPT_FILENAME", "SCRIPT_NAME", "SCRIPT_URI", "SCRIPT_URL", + "SERVER_ADDR", "SERVER_ADMIN", "SERVER_NAME", "SERVER_PORT", "SERVER_PROTOCOL", + "SERVER_SIGNATURE", "SERVER_SOFTWARE", 0 };