Re: Feeding params to cachemgr.cgi

From: Tom Minchin <tom@dont-contact.us>
Date: Thu, 29 Aug 1996 22:13:49 +1000 (EST)

>
> Yo,
>
> I'm sure there is a way to feed parameters into /cgi-bin/cachemgr.cgi;
> I'm tired of typing my server name into the text field every time I
> want to use the cache interface. How can I do this? I (briefly) took
> a peek at cachemgr.c but couldn't find anything..
> Any hints?
>
You could just make an HTML form which starts off setting the right
values. Just bring up the cachemanager in Netscape, dump the HTML
to a file, edit it to "host" to be the value of your hostname, edit
"port" to the port.

...or, do a brutal hack to cachemgr.c

    printf("SIZE=30 VALUE=\"%s\">\n", CACHEMGR_HOSTNAME);
change %s to your target proxy hostname
    printf("SIZE=30 VALUE=\"%d\">\n", CACHE_HTTP_PORT);
change %s to your target proxy port

tom@iacom.com.au
Received on Thu Aug 29 1996 - 05:16:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:53 MST