]> git.ipfire.org Git - thirdparty/squid.git/blame - tools/squidclient.1
Import en_AU from Rosetta Project
[thirdparty/squid.git] / tools / squidclient.1
CommitLineData
4f16e7af 1.TH squidclient 1 "Squid Web Client Tool"
06952d61 2.SH NAME
4f16e7af 3squidclient -- a simple HTTP web client
06952d61
AJ
4.SH SYNOPSIS
5.B squidclient
ef8d9073
AJ
6.if !'po4a'hide' .RB [ \-arsv ]
7.if !'po4a'hide' .RB [ \-g
8.IR count
9.if !'po4a'hide' ]
10.if !'po4a'hide' .RB [ \-h
11.IR remote\-host
12.if !'po4a'hide' ]
13.if !'po4a'hide' .RB [ \-H
14.IR 'string'
15.if !'po4a'hide' ]
16.if !'po4a'hide' .RB [ \-i
17.IR IMS
18.if !'po4a'hide' ]
19.if !'po4a'hide' .RB [ \-I
20.IR ping\-interval
21.if !'po4a'hide' ]
22.if !'po4a'hide' .RB [ \-j
23.IR 'Host\-header'
24.if !'po4a'hide' ]
25.if !'po4a'hide' .RB [ \-l
26.IR local\-host
27.if !'po4a'hide' ]
28.if !'po4a'hide' .RB [ \-m
29.IR method
30.if !'po4a'hide' ]
31.if !'po4a'hide' .RB [ \-p
32.IR port
33.if !'po4a'hide' ]
34.if !'po4a'hide' .RB [ \-P
35.IR file
36.if !'po4a'hide' ]
37.if !'po4a'hide' .RB [ \-t
38.IR count
39.if !'po4a'hide' ]
40.if !'po4a'hide' .RB [ \-T
41.IR timeout
42.if !'po4a'hide' ]
43.if !'po4a'hide' .RB [ \-u
44.IR proxy-user
45.if !'po4a'hide' ]
46.if !'po4a'hide' .RB [ \-U
47.IR www-user
48.if !'po4a'hide' ]
49.if !'po4a'hide' .RB [ \-V
50.IR version
51.if !'po4a'hide' ]
52.if !'po4a'hide' .RB [ \-w
53.IR proxy-password
54.if !'po4a'hide' ]
55.if !'po4a'hide' .RB [ \-W
56.IR www-password
57.if !'po4a'hide' ]
06952d61
AJ
58.B url
59.SH DESCRIPTION
4f16e7af
AJ
60.B squidclient
61is a tool providing a command line interface for retrieving URLs.
62Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy.
d5b26acf 63This tool can be combined with scripts to perform any basic HTTP operation.
4f16e7af
AJ
64Some additional features for access to the
65.B Squid
66proxy object cache and management information are provided.
06952d61 67.SH OPTIONS
ef8d9073 68.if !'po4a'hide' .IP "\-a"
4f16e7af
AJ
69Do NOT include Accept: header.
70.IP "\-g \fIcount\fP"
71Ping mode, perform
72.I count
73iterations (0 to loop until interrupted).
06952d61
AJ
74.IP "\-h \fIhost\fP"
75Retrieve URL from cache on hostname. Default is localhost.
4f16e7af
AJ
76.IP "\-H \fI'string'\fP"
77Extra headers to send. Use '\\n' for new lines.
78.IP "\-i \fItime\fP"
79If-Modified-Since time (in Epoch seconds).
80.IP "-I \fIinterval\fP"
81Ping interval in seconds (default 1 second).
82.IP "\-j \fIhosthdr\fP"
83Host header content
84.IP "\-l \fIhost\fP"
85Specify a local IP address to bind to. Default is none.
06952d61
AJ
86.IP "\-m \fImethod\fP"
87Request method, default is GET. Squid also supports a non-standard method
88called \fBPURGE\fP. You can use that to purge a specific URL from the cache.
89You need to have \fIpurge\fP access setup in squid.conf similar to
90\fImanager\fP access. Here is an example:
91.nf
ef8d9073
AJ
92.if !'po4a'hide' acl purge method PURGE
93.if !'po4a'hide' http_access deny purge !localhost
06952d61 94.fi
4f16e7af
AJ
95.IP "\-p \fIport\fP"
96Port number of cache. Default is 3128.
97.IP "\-P \fIfile"
98PUT request. Using the named file.
99.IP "\-r"
100Force cache to reload URL.
101.IP "\-s"
102Silent. Do not print data to stdout.
103.IP "\-t \fIcount\fP"
104Trace count cache-hops
105.IP "\-T \fItimeout\fP"
106Timeout value (seconds) for read/write operations.
107.IP "\-u \fIuser\fP"
108Proxy authentication username
109.IP "\-U \fIuser\fP"
110WWW authentication username
111.IP "\-v"
112Verbose. Print outgoing message to stderr.
113.IP "\-w \fIpassword\fP"
114Proxy authentication password
115.IP "\-W \fIpassword\fP"
116WWW authentication password
117.IP "\-V \fIversion\fP"
118HTTP Version. Use '-' for HTTP/0.9 omitted case
06952d61 119.SH SEE ALSO
ef8d9073
AJ
120.if !'po4a'hide' .BR cachemgr.cgi "(8), "
121.if !'po4a'hide' .BR squid "(8)"
06952d61
AJ
122.SH AUTHOR
123Derived from Harvest. Further developed by by numerous individuals from
124the internet community. Development is led by Duane Wessels of the
125National Laboratory for Applied Network Research and funded by
126the National Science Foundation.