I did have a simple cgi script to do this, you will need to make a form to pass it the URL as http://localhost/cgi-bin/purger.cgi?url=http://website/url.htm Change the ip/port no as required, also you may need to make changes to squid.conf to give 'yourself' permissions to purge. This script was on a secure server - and I did not have to worry about malicious use, so it is not safe to put on a publicly accessible site.
=========================================== use CGI qw(:standard); $urltopurge=param("url"); print header(); print "Trying to purge <b>$urltopurge</b><P>"; print "sending command <B>squidclient -v -m PURGE -h 192.168.2.27 -p 8080 $urltopurge</b> to proxy server<P><HR><b>Server Response:</b><P>"; $result = system ("squidclient -v -m PURGE -h 192.168.2.27 -p 8080 $urltopurge"); print "<hr>"; print "Purger.cgi v1.0 - Tony Melia"; ============================================ Regards, Tony -----Original Message----- From: Alvaro Figueroa [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 September 2003 08:38 To: [EMAIL PROTECTED] Subject: [squid-users] How to purge an object from cache There is a FAQ entry for this question which refers to a 'client' program but it I can't find it anywhere on my server. Can somebody tell me where can I get a copy of the program? Thanks, Alvaro -------------------------- Alvaro Figueroa Cristiá Administrador de Red Corporación Santo Tomás (562)376-3483 -------------------------- Downs MicroSystems Pty Ltd 145 Margaret Street Toowoomba Qld 4350 Ph. (07) 4639 3344 Fax (07) 4639 3820 Important Disclaimer and Warning Downs MicroSystems does not represent or warrant that any attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequences resulting directly or indirectly from use of the attached files. The liability of Downs MicroSystems in any event is limited to either the resupply of the attached files or the cost of having the attached files resupplied. NOTE: The views expressed by the individual in this message do not necessarily reflect those of the organisation. Downs MicroSystems is committed to protecting the privacy of individuals, and is bound by the principles of the Commonwealth Privacy Act (1988). Should you wish to view our Privacy Policy, please visit www.downsmicro.com.au. The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.