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