/* testhttp.c */ /* Copyright 1997-2000 by Eberhard Mattes Donated to the public domain. No warranty. 1997-07-27 Initial version 1997-09-12 -log simple-response 1997-09-13 url_check_path() removed; use "href" for Refresh 1997-10-20 Add openlog(), closelog(), and setlogmask() 1997-10-21 libemfw.h defines octet 1998-09-03 "-log content-type-conflict" 1999-01-01 "-log unknown-content-type" 1999-03-17 CONNECT (https/SSL) 1999-05-10 "referer" configuration 1999-09-16 allow/block style 2000-04-15 Make NAME_data const */ #include #include #include #include #include #include "magic.h" #include "libemfw.h" #include "emio.h" #include "squid-gw.h" #include "ctype.h" int needauth = 0; magic_t magic; struct ctype_t* ctypes; /* These variables must be global. */ EMI_FILE *c_in, *s_in; /* Input from client, from server */ EMO_FILE *c_out, *s_out; /* Output to client, to server */ static void usage (void) ATTR_NORETURN; static void usage (void) { fputs ("Usage: testhttp -client [