]> git.ipfire.org Git - thirdparty/squid.git/blame_incremental - tools/squidclient/squidclient.1
Source Format Enforcement (#763)
[thirdparty/squid.git] / tools / squidclient / squidclient.1
... / ...
CommitLineData
1.if !'po4a'hide' .TH squidclient 1
2.
3.SH NAME
4squidclient \- A simple HTTP web client tool
5.
6.SH SYNOPSIS
7.if !'po4a'hide' .B squidclient
8.if !'po4a'hide' .B "[ \-aknNrsv ] "
9.if !'po4a'hide' .B "[ \-\-ping [ping\-options] ] "
10.if !'po4a'hide' .B "[ \-\-https] [tls\-options] [ \-A"
11string
12.if !'po4a'hide' .B "] [ \-h | \-\-host"
13remote host
14.if !'po4a'hide' .B "] [ \-H '"
15string
16.if !'po4a'hide' .B "' ] [ \-i"
17IMS
18.if !'po4a'hide' .B "] [ \-j '"
19Host header
20.if !'po4a'hide' .B "' ] [ \-l | \-\-local"
21host
22.if !'po4a'hide' .B "] [ \-m"
23method
24.if !'po4a'hide' .B "] [ \-p | \-\-port"
25port
26.if !'po4a'hide' .B "] [ \-P"
27file
28.if !'po4a'hide' .B "] [ \-t"
29count
30.if !'po4a'hide' .B "] [ \-T"
31timeout
32.if !'po4a'hide' .B "] [ \-u"
33user
34.if !'po4a'hide' .B "] [ \-U"
35user
36.if !'po4a'hide' .B "] [ \-V"
37version
38.if !'po4a'hide' .B "] [ \-w"
39password
40.if !'po4a'hide' .B "] [ \-W"
41password
42.if !'po4a'hide' .B "] "
43url
44.
45.PP
46.if !'po4a'hide' .B "Ping options: [ \-g"
47count
48.if !'po4a'hide' .B "] [ \-I"
49interval
50.if !'po4a'hide' .B "] "
51.
52.PP
53.if !'po4a'hide' .B "TLS options: [ \-\-anonymous\-tls ] [ \-\-trusted\-ca"
54CA certificates file
55.if !'po4a'hide' .B "...] [ \-\-cert"
56client X.509 certificate file
57.if !'po4a'hide' .B "] [ \-\-params"
58TLS session parameters
59.if !'po4a'hide' .B "] "
60.
61.SH DESCRIPTION
62.B squidclient
63is a tool providing a command line interface for retrieving URLs.
64Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy.
65This tool can be combined with scripts to perform any basic HTTP operation.
66Some additional features for access to the
67.B squid
68proxy object cache and management information are provided.
69.
70.SH OPTIONS
71.if !'po4a'hide' .TP 12
72.if !'po4a'hide' .B "\-a"
73Do NOT include Accept: header.
74.
75.if !'po4a'hide' .TP
76.if !'po4a'hide' .B "\-A 'string'"
77Send
78.B string
79as User-Agent: header. To omit the header completely set string to empty ('').
80.
81.if !'po4a'hide' .TP
82.if !'po4a'hide' .B "\-h | \-\-host host"
83Retrieve URL from server host. Default is
84.B localhost
85.
86.if !'po4a'hide' .TP
87.if !'po4a'hide' .B "\-H 'string'"
88Extra headers to send. Use
89.B '\en'
90for new lines.
91.
92.if !'po4a'hide' .TP
93.if !'po4a'hide' .B "\-i time"
94If\-Modified\-Since time (in Epoch seconds).
95.
96.if !'po4a'hide' .TP
97.if !'po4a'hide' .B "\-j hosthdr"
98Host header content
99.
100.if !'po4a'hide' .TP
101.if !'po4a'hide' .B "\-k"
102Keep the connection active. Default is to do only one request then close.
103.
104.if !'po4a'hide' .TP
105.if !'po4a'hide' .B "\-l | \-\-local host"
106Specify a local IP address to bind to. Default is none.
107.
108.if !'po4a'hide' .TP
109.if !'po4a'hide' .B "\-m method"
110Request method, default is
111.I GET.
112Squid also supports a non-standard method called
113.I PURGE.
114You can use that to purge a specific URL from the cache.
115You need to have
116.I purge
117access setup in
118.B squid.conf
119similar to
120.I manager
121access. Here is an example:
122.if !'po4a'hide' .nf
123.if !'po4a'hide' acl purge method PURGE
124.if !'po4a'hide' http_access deny purge !localhost
125.if !'po4a'hide' .fi
126.
127.if !'po4a'hide' .TP
128.if !'po4a'hide' .B "\-n"
129Proxy Negotiate(Kerberos) authentication.
130.if !'po4a'hide' .nf
131Use kinit username@DOMAIN first to get initial TGS.
132.
133.if !'po4a'hide' .TP
134.if !'po4a'hide' .B "\-N"
135WWW Negotiate(Kerberos) authentication.
136.if !'po4a'hide' .nf
137Use kinit username@DOMAIN first to get initial TGS.
138.if !'po4a'hide' .fi
139.
140.if !'po4a'hide' .TP
141.if !'po4a'hide' .B "\-p port"
142Port number of cache. Default is 3128.
143.
144.if !'po4a'hide' .TP
145.if !'po4a'hide' .B "\-P file"
146Request body. Using the named file as data.
147.
148.if !'po4a'hide' .TP
149.if !'po4a'hide' .B "\-r"
150Force cache to reload URL.
151.
152.if !'po4a'hide' .TP
153.if !'po4a'hide' .B "\-s"
154Silent. Do not print data to stdout.
155.
156.if !'po4a'hide' .TP
157.if !'po4a'hide' .B "\-t count"
158Trace
159.I count
160HTTP relay or proxy hops
161.
162.if !'po4a'hide' .TP
163.if !'po4a'hide' .B "\-T timeout"
164Timeout value (seconds) for read/write operations.
165.
166.if !'po4a'hide' .TP
167.if !'po4a'hide' .B "\-u user"
168Proxy authentication username
169.
170.if !'po4a'hide' .TP
171.if !'po4a'hide' .B "\-U user"
172WWW authentication username
173.
174.if !'po4a'hide' .TP
175.if !'po4a'hide' .B "\-v"
176Verbose. Print outgoing message to stderr.
177.
178.if !'po4a'hide' .TP
179.if !'po4a'hide' .B "\-V version"
180HTTP Version. Use '\-' for HTTP/0.9 omitted case
181.
182.if !'po4a'hide' .TP
183.if !'po4a'hide' .B "\-w password"
184Proxy authentication password
185.
186.if !'po4a'hide' .TP
187.if !'po4a'hide' .B "\-W password"
188WWW authentication password
189.
190.if !'po4a'hide' .TP
191.if !'po4a'hide' .B "\-\-https"
192Use Transport Layer Security on the HTTP connection.
193.
194.if !'po4a'hide' .TP
195.if !'po4a'hide' .B "\-\-anonymous\-tls"
196Use TLS with unauthenticated (anonymous) certificate.
197.
198.if !'po4a'hide' .TP
199.if !'po4a'hide' .B "\-\-cert file"
200File containing client X.509 certificate in PEM format.
201May be repeated to load several client certificates.
202.
203.if !'po4a'hide' .TP
204.if !'po4a'hide' .B "\-\-trusted\-ca file"
205File containing trusted Certificate Authority (CA) certificates in PEM format.
206May be repeated to load any number of files.
207.
208.if !'po4a'hide' .TP
209.if !'po4a'hide' .B "\-\-params values"
210TLS library specific parameters for the communication session.
211See the library documentation for details on valid parameters.
212.if !'po4a'hide' .I "GnuTLS: http://gnutls.org/manual/html_node/Priority\-Strings.html"
213If repeated only the last value will have effect.
214.
215.if !'po4a'hide' .TP
216.if !'po4a'hide' .B "\-\-ping [options]"
217Enable ping mode. Optional \-g and \-I parameters must follow immediately if used.
218Repeated use resets to default ping settings.
219.
220.if !'po4a'hide' .TP
221.if !'po4a'hide' .B "\-g count"
222Ping mode, perform
223.I count
224iterations (default is to loop until interrupted).
225.
226.if !'po4a'hide' .TP
227.if !'po4a'hide' .B "\-I interval"
228Ping interval in seconds (default 1 second).
229.
230.SH AUTHOR
231This program and manual was written by
232.if !'po4a'hide' .I Amos Jeffries <amosjeffries@squid-cache.org>
233.PP
234Based on original code derived from Harvest and further developed by
235numerous individuals from the internet community.
236.
237.SH COPYRIGHT
238.PP
239 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
240 *
241 * Squid software is distributed under GPLv2+ license and includes
242 * contributions from numerous individuals and organizations.
243 * Please see the COPYING and CONTRIBUTORS files for details.
244.
245.SH QUESTIONS
246Questions on the usage of this program can be sent to the
247.I Squid Users mailing list
248.if !'po4a'hide' <squid-users@lists.squid-cache.org>
249.
250.SH REPORTING BUGS
251See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report.
252.PP
253Report bugs or bug fixes using http://bugs.squid-cache.org/
254.PP
255Report serious security bugs to
256.I Squid Bugs <squid-bugs@lists.squid-cache.org>
257.PP
258Report ideas for new improvements to the
259.I Squid Developers mailing list
260.if !'po4a'hide' <squid-dev@lists.squid-cache.org>
261.
262.SH SEE ALSO
263.if !'po4a'hide' .BR squid "(8), "
264.if !'po4a'hide' .BR cachemgr.cgi "(8)"