]> git.ipfire.org Git - thirdparty/squid.git/blame - tools/squidclient.1
Bug 3833: Option '-k' is not present in squidclient man page
[thirdparty/squid.git] / tools / squidclient.1
CommitLineData
83915266
AJ
1.if !'po4a'hide' .TH squidclient 1
2.
06952d61 3.SH NAME
83915266
AJ
4.if !'po4a'hide' .B squidclient
5.if !'po4a'hide' \-
6A simple HTTP web client tool
7.
06952d61 8.SH SYNOPSIS
83915266 9.if !'po4a'hide' .B squidclient
e1c27932 10.if !'po4a'hide' .B "[ \-aknNrsv ] [ \-A"
e7d8024c
AJ
11string
12.if !'po4a'hide' .B "] [ \-g"
83915266
AJ
13count
14.if !'po4a'hide' .B "] [ \-h"
92a0c1e0 15remote host
83915266
AJ
16.if !'po4a'hide' .B "] [ \-H '"
17string
18.if !'po4a'hide' .B "' ] [ \-i"
19IMS
20.if !'po4a'hide' .B "] [ \-I"
92a0c1e0 21ping interval
83915266 22.if !'po4a'hide' .B "] [ \-j '"
92a0c1e0 23Host header
83915266 24.if !'po4a'hide' .B "' ] [ \-l"
92a0c1e0 25local host
83915266
AJ
26.if !'po4a'hide' .B "] [ \-m"
27method
28.if !'po4a'hide' .B "] [ \-p"
29port
30.if !'po4a'hide' .B "] [ \-P"
31file
32.if !'po4a'hide' .B "] [ \-t"
33count
34.if !'po4a'hide' .B "] [ \-T"
35timeout
36.if !'po4a'hide' .B "] [ \-u"
92a0c1e0 37user
83915266 38.if !'po4a'hide' .B "] [ \-U"
92a0c1e0 39user
83915266
AJ
40.if !'po4a'hide' .B "] [ \-V"
41version
42.if !'po4a'hide' .B "] [ \-w"
92a0c1e0 43password
83915266 44.if !'po4a'hide' .B "] [ \-W"
92a0c1e0 45password
83915266
AJ
46.if !'po4a'hide' .B "] "
47url
48.
06952d61 49.SH DESCRIPTION
4f16e7af
AJ
50.B squidclient
51is a tool providing a command line interface for retrieving URLs.
52Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy.
d5b26acf 53This tool can be combined with scripts to perform any basic HTTP operation.
4f16e7af 54Some additional features for access to the
83915266 55.B squid
4f16e7af 56proxy object cache and management information are provided.
83915266 57.
06952d61 58.SH OPTIONS
83915266
AJ
59.if !'po4a'hide' .TP 12
60.if !'po4a'hide' .B "\-a"
4f16e7af 61Do NOT include Accept: header.
83915266
AJ
62.
63.if !'po4a'hide' .TP
e7d8024c
AJ
64.if !'po4a'hide' .B "\-A 'string'"
65Send
66.B string
67as User-Agent: header. To omit the header completely set string to empty ('').
68.
69.if !'po4a'hide' .TP
83915266 70.if !'po4a'hide' .B "\-g count"
4f16e7af
AJ
71Ping mode, perform
72.I count
73iterations (0 to loop until interrupted).
83915266
AJ
74.
75.if !'po4a'hide' .TP
9e6ba1a4 76.if !'po4a'hide' .B "\-h host"
83915266
AJ
77Retrieve URL from cache on hostname. Default is
78.B localhost
79.
80.if !'po4a'hide' .TP
81.if !'po4a'hide' .B "\-H 'string'"
92a0c1e0
AJ
82Extra headers to send. Use
83.B '\\n'
84for new lines.
83915266
AJ
85.
86.if !'po4a'hide' .TP
87.if !'po4a'hide' .B "\-i time"
92a0c1e0 88If\-Modified\-Since time (in Epoch seconds).
83915266
AJ
89.
90.if !'po4a'hide' .TP
91.if !'po4a'hide' .B "\-I interval"
4f16e7af 92Ping interval in seconds (default 1 second).
83915266
AJ
93.
94.if !'po4a'hide' .TP
95.if !'po4a'hide' .B "\-j hosthdr"
4f16e7af 96Host header content
83915266
AJ
97.
98.if !'po4a'hide' .TP
e1c27932
AJ
99.if !'po4a'hide' .B "\-k"
100Keep the connection active. Default is to do only one request then close.
101.
102.if !'po4a'hide' .TP
83915266 103.if !'po4a'hide' .B "\-l host"
4f16e7af 104Specify a local IP address to bind to. Default is none.
83915266
AJ
105.
106.if !'po4a'hide' .TP
107.if !'po4a'hide' .B "\-m method"
108Request method, default is
109.I GET.
110Squid also supports a non-standard method called
111.I PURGE.
112You can use that to purge a specific URL from the cache.
113You need to have
114.I purge
115access setup in
116.B squid.conf
117similar to
118.I manager
119 access. Here is an example:
120.if !'po4a'hide' .nf
ef8d9073
AJ
121.if !'po4a'hide' acl purge method PURGE
122.if !'po4a'hide' http_access deny purge !localhost
83915266
AJ
123.if !'po4a'hide' .fi
124.
125.if !'po4a'hide' .TP
235c29c8
AJ
126.if !'po4a'hide' .B "\-n"
127Proxy Negotiate(Kerberos) authentication.
128.if !'po4a'hide' .nf
129Use kinit username@DOMAIN first to get initial TGS.
130.
131.if !'po4a'hide' .TP
132.if !'po4a'hide' .B "\-N"
133WWW Negotiate(Kerberos) authentication.
134.if !'po4a'hide' .nf
135Use kinit username@DOMAIN first to get initial TGS.
136.
137.if !'po4a'hide' .TP
83915266 138.if !'po4a'hide' .B "\-p port"
4f16e7af 139Port number of cache. Default is 3128.
83915266
AJ
140.
141.if !'po4a'hide' .TP
142.if !'po4a'hide' .B "\-P file"
92a0c1e0 143Request body. Using the named file as data.
83915266
AJ
144.
145.if !'po4a'hide' .TP
146.if !'po4a'hide' .B "\-r"
4f16e7af 147Force cache to reload URL.
83915266
AJ
148.
149.if !'po4a'hide' .TP
150.if !'po4a'hide' .B "\-s"
4f16e7af 151Silent. Do not print data to stdout.
83915266
AJ
152.
153.if !'po4a'hide' .TP
154.if !'po4a'hide' .B "\-t count"
92a0c1e0
AJ
155Trace
156.I count
157HTTP relay or proxy hops
83915266
AJ
158.
159.if !'po4a'hide' .TP
160.if !'po4a'hide' .B "\-T timeout"
4f16e7af 161Timeout value (seconds) for read/write operations.
83915266
AJ
162.
163.if !'po4a'hide' .TP
164.if !'po4a'hide' .B "\-u user"
4f16e7af 165Proxy authentication username
83915266
AJ
166.
167.if !'po4a'hide' .TP
168.if !'po4a'hide' .B "\-U user"
4f16e7af 169WWW authentication username
83915266
AJ
170.
171.if !'po4a'hide' .TP
172.if !'po4a'hide' .B "\-v"
4f16e7af 173Verbose. Print outgoing message to stderr.
83915266
AJ
174.
175.if !'po4a'hide' .TP
176.if !'po4a'hide' .B "\-V version"
177HTTP Version. Use '\-' for HTTP/0.9 omitted case
178.
179.if !'po4a'hide' .TP
180.if !'po4a'hide' .B "\-w password"
4f16e7af 181Proxy authentication password
83915266
AJ
182.
183.if !'po4a'hide' .TP
184.if !'po4a'hide' .B "\-W password"
4f16e7af 185WWW authentication password
83915266 186.
06952d61
AJ
187.SH AUTHOR
188Derived from Harvest. Further developed by by numerous individuals from
189the internet community. Development is led by Duane Wessels of the
190National Laboratory for Applied Network Research and funded by
191the National Science Foundation.
83915266
AJ
192.
193.SH COPYRIGHT
c871f41e 194Distributed under the GNU General Public License (GNU GPL) version 2 or later (GPLv2+).
83915266
AJ
195.
196.SH QUESTIONS
197Questions on the usage of this program can be sent to the
198.I Squid Users mailing list
199.if !'po4a'hide' <squid-users@squid-cache.org>
200.
201.SH REPORTING BUGS
c871f41e
AJ
202See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report.
203.PP
83915266
AJ
204Report bugs or bug fixes using http://bugs.squid-cache.org/
205.PP
206Report serious security bugs to
207.I Squid Bugs <squid-bugs@squid-cache.org>
208.PP
209Report ideas for new improvements to the
210.I Squid Developers mailing list
211.if !'po4a'hide' <squid-dev@squid-cache.org>
212.
213.SH SEE ALSO
214.if !'po4a'hide' .BR squid "(8), "
215.if !'po4a'hide' .BR cachemgr.cgi "(8)"