man squidclient (Commandes) - squidclient -- client interface to the squid cache

NAME

squidclient -- client interface to the squid cache

SYNOPSIS

squidclient [-r] [-s] [-i IMS] [-h host] [-p port] [-m method] url

DESCRIPTION

Squidclient is a command line interface to retrieve URLs through the squid object cache.

OPTIONS

-r
Force cache to reload URL.
-s
Silent. Do not print data to stdout.
-i
If-Modified-Since time (in Epoch seconds).
-h
Retrieve URL from cache on hostname. Default is localhost.
-p
Port number of cache. Default is 3128.
-m
Request method, default is GET. Squid also supports a non-standard method called PURGE. You can use that to purge a specific URL from the cache. You need to have purge access setup in squid.conf similar to manager access. Here is an example:

acl purge method PURGE http_access deny purge !localhost

SEE ALSO

squid(8).

AUTHOR

Derived from Harvest. Further developed by by numerous individuals from the internet community. Development is led by Duane Wessels of the National Laboratory for Applied Network Research and funded by the National Science Foundation.