/* ==================================================================== * * Copyright (c) 2000-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ==================================================================== * * This software was contributed by Covalent Technologies Inc, * http://www.covalent.net around April 20002. * * mod_specweb99.h -- Header file for Apache specweb99 module * sctemme July 2001 * * See the file LICENSE.txt for license info. * * { sctemme | dirkx }@{ apache.org | covalent.net } * */ /* * ! @header mod_specweb99 The mod_specweb99 module implements the SPECWeb99 * dynamic content requests. It should work with Apache 2.0 by enabling the * request handlers in the Apache configuration file. Since this module is * self-contained and called exclusively through its handlers, this * documentation should be seen purely as internal, not to reuse the symbols * it describes. */ #ifndef MOD_SPECWEB99_H #define MOD_SPECWEB99_H #define BOILERPLATE_START \ "\n"\ "SPECweb99 Dynamic GET & POST Test\n"\ "\n"\ "

SERVER_SOFTWARE = %s\n"\ "

REMOTE_ADDR = %s\n"\ "

SCRIPT_NAME = %s\n"\ "

QUERY_STRING = %s\n"\ "

\n"

#define BOILERPLATE_END \
	"\n
\n\n" #define MARKER \ " $url . \"f\";\n\ my($urlroot) = ($url =~ m#\?(.*file_set/)#);\n\ $req->content(\"class=1&client=2&dir=00004&num=3&urlroot=$urlroot\");\n\ +\n\ + # ddhill added \n\ + $req->header('Content-type' => 'application/x-www-form-urlencoded');\n\ + # end ddhill added\n\ }\n\ else {\n\ $req = new HTTP::Request 'GET' => $url;\n" /* Structure to hold custom ad data */ struct cadrec { apr_uint32_t addemographics; apr_uint32_t age_weightings; apr_uint32_t gen_weightings; apr_uint32_t reg_weightings; apr_uint32_t int1_weightings; apr_uint32_t int2_weightings; apr_uint16_t minimum_match_value; apr_uint32_t expiration_time; }; #ifdef DEBUG /* Macro to log debug messages with standardized parameters. */ #define specweb99_debug(s,mess) { if (s) ap_log_error(APLOG_MARK, \ APLOG_NOERRNO|APLOG_DEBUG, 0, \ (s), (mess)); \ else \ fprintf(stderr,(mess)); \ } #endif #endif