1squidclient(1)              General Commands Manual             squidclient(1)
2
3
4

NAME

6       squidclient -- a simple HTTP web client
7

SYNOPSIS

9       squidclient   [-arsv][-A   string  ][-g  count]  [-h  remote-host]  [-H
10       'string']  [-i  IMS]  [-I   ping-interval]   [-j   'Host-header']   [-l
11       local-host] [-m method] [-p port] [-P file] [-t count] [-T timeout] [-u
12       proxy-user] [-U www-user] [-V version]  [-w  proxy-password]  [-W  www-
13       password] url
14

DESCRIPTION

16       squidclient is a tool providing a command line interface for retrieving
17       URLs.  Designed for testing any HTTP 0.9, 1.0, or  1.1  web  server  or
18       proxy.   This  tool  can  be combined with scripts to perform any basic
19       HTTP operation.  Some additional features for access to the Squid proxy
20       object cache and management information are provided.
21

OPTIONS

23       -a     Do NOT include Accept: header.
24
25       -A 'string'
26              Send string as User-Agent: header. To omit the header completely
27              set string to empty ('').
28
29       -g count
30              Ping mode, perform count iterations  (0  to  loop  until  inter‐
31              rupted).
32
33       -h host
34              Retrieve URL from cache on hostname.  Default is localhost.
35
36       -H 'string'
37              Extra headers to send. Use '\n' for new lines.
38
39       -i time
40              If-Modified-Since time (in Epoch seconds).
41
42       -I interval
43              Ping interval in seconds (default 1 second).
44
45       -j hosthdr
46              Host header content
47
48       -l host
49              Specify a local IP address to bind to.  Default is none.
50
51       -m method
52              Request  method, default is GET. Squid also supports a non-stan‐
53              dard method called PURGE. You can use that to purge  a  specific
54              URL  from  the  cache.   You  need to have purge access setup in
55              squid.conf similar to manager access. Here is an example:
56                    acl purge method PURGE
57                    http_access deny purge !localhost
58
59       -p port
60              Port number of cache.  Default is 3128.
61
62       -P file
63              PUT request. Using the named file.
64
65       -r     Force cache to reload URL.
66
67       -s     Silent.  Do not print data to stdout.
68
69       -t count
70              Trace count cache-hops
71
72       -T timeout
73              Timeout value (seconds) for read/write operations.
74
75       -u user
76              Proxy authentication username
77
78       -U user
79              WWW authentication username
80
81       -v     Verbose. Print outgoing message to stderr.
82
83       -w password
84              Proxy authentication password
85
86       -W password
87              WWW authentication password
88
89       -V version
90              HTTP Version. Use '-' for HTTP/0.9 omitted case
91

SEE ALSO

93       cachemgr.cgi(8), squid(8)
94

AUTHOR

96       Derived from Harvest. Further developed by by numerous individuals from
97       the  internet  community.  Development  is  led by Duane Wessels of the
98       National Laboratory for Applied Network  Research  and  funded  by  the
99       National Science Foundation.
100
101
102
103                             Squid Web Client Tool              squidclient(1)
Impressum