1squidclient(1) General Commands Manual squidclient(1)
2
3
4
6 squidclient - A simple HTTP web client tool
7
9 squidclient [ -aknNrsv ] [ -A string ] [ -g count ] [ -h remote host ]
10 [ -H ' string ' ] [ -i IMS ] [ -I ping interval ] [ -j ' Host header '
11 ] [ -l local host ] [ -m method ] [ -p port ] [ -P file ] [ -t count ]
12 [ -T timeout ] [ -u user ] [ -U user ] [ -V version ] [ -w password ] [
13 -W password ] url
14
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
23 -a Do NOT include Accept: header.
24
25 -A 'string' Send string as User-Agent: header. To omit the header com‐
26 pletely set string to empty ('').
27
28 -g count Ping mode, perform count iterations (0 to loop until inter‐
29 rupted).
30
31 -h host Retrieve URL from cache on hostname. Default is localhost
32
33 -H 'string' Extra headers to send. Use '0 for new lines.
34
35 -i time If-Modified-Since time (in Epoch seconds).
36
37 -I interval Ping interval in seconds (default 1 second).
38
39 -j hosthdr Host header content
40
41 -k Keep the connection active. Default is to do only one
42 request then close.
43
44 -l host Specify a local IP address to bind to. Default is none.
45
46 -m method Request method, default is GET. Squid also supports a non-
47 standard method called PURGE. You can use that to purge a
48 specific URL from the cache. You need to have purge access
49 setup in squid.conf similar to manager
50 access. Here is an example:
51 acl purge method PURGE
52 http_access deny purge !localhost
53
54 -n Proxy Negotiate(Kerberos) authentication.
55 Use kinit username@DOMAIN first to get initial TGS.
56
57 -N WWW Negotiate(Kerberos) authentication.
58 Use kinit username@DOMAIN first to get initial TGS.
59
60 -p port Port number of cache. Default is 3128.
61
62 -P file Request body. Using the named file as data.
63
64 -r Force cache to reload URL.
65
66 -s Silent. Do not print data to stdout.
67
68 -t count Trace
69 count
70 HTTP relay or proxy hops
71
72 -T timeout Timeout value (seconds) for read/write operations.
73
74 -u user Proxy authentication username
75
76 -U user WWW authentication username
77
78 -v Verbose. Print outgoing message to stderr.
79
80 -V version HTTP Version. Use '-' for HTTP/0.9 omitted case
81
82 -w password Proxy authentication password
83
84 -W password WWW authentication password
85
87 This program and manual was written by Amos Jeffries <amosjef‐
88 fries@squid-cache.org>
89
90 Based on original code derived from Harvest and further developed by
91 numerous individuals from the internet community.
92
94 Distributed under the GNU General Public License (GNU GPL) version 2 or
95 later (GPLv2+).
96
98 Questions on the usage of this program can be sent to the Squid Users
99 mailing list <squid-users@squid-cache.org>
100
102 See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of
103 what you need to include with your bug report.
104
105 Report bugs or bug fixes using http://bugs.squid-cache.org/
106
107 Report serious security bugs to Squid Bugs <squid-bugs@squid-cache.org>
108
109 Report ideas for new improvements to the Squid Developers mailing list
110 <squid-dev@squid-cache.org>
111
113 squid(8), cachemgr.cgi(8)
114
115
116
117 squidclient(1)