]>
Commit | Line | Data |
---|---|---|
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' \- | |
6 | A 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 |
11 | string |
12 | .if !'po4a'hide' .B "] [ \-g" | |
83915266 AJ |
13 | count |
14 | .if !'po4a'hide' .B "] [ \-h" | |
92a0c1e0 | 15 | remote host |
83915266 AJ |
16 | .if !'po4a'hide' .B "] [ \-H '" |
17 | string | |
18 | .if !'po4a'hide' .B "' ] [ \-i" | |
19 | IMS | |
20 | .if !'po4a'hide' .B "] [ \-I" | |
92a0c1e0 | 21 | ping interval |
83915266 | 22 | .if !'po4a'hide' .B "] [ \-j '" |
92a0c1e0 | 23 | Host header |
83915266 | 24 | .if !'po4a'hide' .B "' ] [ \-l" |
92a0c1e0 | 25 | local host |
83915266 AJ |
26 | .if !'po4a'hide' .B "] [ \-m" |
27 | method | |
28 | .if !'po4a'hide' .B "] [ \-p" | |
29 | port | |
30 | .if !'po4a'hide' .B "] [ \-P" | |
31 | file | |
32 | .if !'po4a'hide' .B "] [ \-t" | |
33 | count | |
34 | .if !'po4a'hide' .B "] [ \-T" | |
35 | timeout | |
36 | .if !'po4a'hide' .B "] [ \-u" | |
92a0c1e0 | 37 | user |
83915266 | 38 | .if !'po4a'hide' .B "] [ \-U" |
92a0c1e0 | 39 | user |
83915266 AJ |
40 | .if !'po4a'hide' .B "] [ \-V" |
41 | version | |
42 | .if !'po4a'hide' .B "] [ \-w" | |
92a0c1e0 | 43 | password |
83915266 | 44 | .if !'po4a'hide' .B "] [ \-W" |
92a0c1e0 | 45 | password |
83915266 AJ |
46 | .if !'po4a'hide' .B "] " |
47 | url | |
48 | . | |
06952d61 | 49 | .SH DESCRIPTION |
4f16e7af AJ |
50 | .B squidclient |
51 | is a tool providing a command line interface for retrieving URLs. | |
52 | Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy. | |
d5b26acf | 53 | This tool can be combined with scripts to perform any basic HTTP operation. |
4f16e7af | 54 | Some additional features for access to the |
83915266 | 55 | .B squid |
4f16e7af | 56 | proxy 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 | 61 | Do NOT include Accept: header. |
83915266 AJ |
62 | . |
63 | .if !'po4a'hide' .TP | |
e7d8024c AJ |
64 | .if !'po4a'hide' .B "\-A 'string'" |
65 | Send | |
66 | .B string | |
67 | as 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 |
71 | Ping mode, perform |
72 | .I count | |
73 | iterations (0 to loop until interrupted). | |
83915266 AJ |
74 | . |
75 | .if !'po4a'hide' .TP | |
9e6ba1a4 | 76 | .if !'po4a'hide' .B "\-h host" |
83915266 AJ |
77 | Retrieve 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 |
82 | Extra headers to send. Use |
83 | .B '\\n' | |
84 | for new lines. | |
83915266 AJ |
85 | . |
86 | .if !'po4a'hide' .TP | |
87 | .if !'po4a'hide' .B "\-i time" | |
92a0c1e0 | 88 | If\-Modified\-Since time (in Epoch seconds). |
83915266 AJ |
89 | . |
90 | .if !'po4a'hide' .TP | |
91 | .if !'po4a'hide' .B "\-I interval" | |
4f16e7af | 92 | Ping interval in seconds (default 1 second). |
83915266 AJ |
93 | . |
94 | .if !'po4a'hide' .TP | |
95 | .if !'po4a'hide' .B "\-j hosthdr" | |
4f16e7af | 96 | Host header content |
83915266 AJ |
97 | . |
98 | .if !'po4a'hide' .TP | |
e1c27932 AJ |
99 | .if !'po4a'hide' .B "\-k" |
100 | Keep 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 | 104 | Specify 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" | |
108 | Request method, default is | |
109 | .I GET. | |
110 | Squid also supports a non-standard method called | |
111 | .I PURGE. | |
112 | You can use that to purge a specific URL from the cache. | |
113 | You need to have | |
114 | .I purge | |
115 | access setup in | |
116 | .B squid.conf | |
117 | similar 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" |
127 | Proxy Negotiate(Kerberos) authentication. | |
128 | .if !'po4a'hide' .nf | |
129 | Use kinit username@DOMAIN first to get initial TGS. | |
130 | . | |
131 | .if !'po4a'hide' .TP | |
132 | .if !'po4a'hide' .B "\-N" | |
133 | WWW Negotiate(Kerberos) authentication. | |
134 | .if !'po4a'hide' .nf | |
135 | Use kinit username@DOMAIN first to get initial TGS. | |
136 | . | |
137 | .if !'po4a'hide' .TP | |
83915266 | 138 | .if !'po4a'hide' .B "\-p port" |
4f16e7af | 139 | Port number of cache. Default is 3128. |
83915266 AJ |
140 | . |
141 | .if !'po4a'hide' .TP | |
142 | .if !'po4a'hide' .B "\-P file" | |
92a0c1e0 | 143 | Request body. Using the named file as data. |
83915266 AJ |
144 | . |
145 | .if !'po4a'hide' .TP | |
146 | .if !'po4a'hide' .B "\-r" | |
4f16e7af | 147 | Force cache to reload URL. |
83915266 AJ |
148 | . |
149 | .if !'po4a'hide' .TP | |
150 | .if !'po4a'hide' .B "\-s" | |
4f16e7af | 151 | Silent. Do not print data to stdout. |
83915266 AJ |
152 | . |
153 | .if !'po4a'hide' .TP | |
154 | .if !'po4a'hide' .B "\-t count" | |
92a0c1e0 AJ |
155 | Trace |
156 | .I count | |
157 | HTTP relay or proxy hops | |
83915266 AJ |
158 | . |
159 | .if !'po4a'hide' .TP | |
160 | .if !'po4a'hide' .B "\-T timeout" | |
4f16e7af | 161 | Timeout value (seconds) for read/write operations. |
83915266 AJ |
162 | . |
163 | .if !'po4a'hide' .TP | |
164 | .if !'po4a'hide' .B "\-u user" | |
4f16e7af | 165 | Proxy authentication username |
83915266 AJ |
166 | . |
167 | .if !'po4a'hide' .TP | |
168 | .if !'po4a'hide' .B "\-U user" | |
4f16e7af | 169 | WWW authentication username |
83915266 AJ |
170 | . |
171 | .if !'po4a'hide' .TP | |
172 | .if !'po4a'hide' .B "\-v" | |
4f16e7af | 173 | Verbose. Print outgoing message to stderr. |
83915266 AJ |
174 | . |
175 | .if !'po4a'hide' .TP | |
176 | .if !'po4a'hide' .B "\-V version" | |
177 | HTTP Version. Use '\-' for HTTP/0.9 omitted case | |
178 | . | |
179 | .if !'po4a'hide' .TP | |
180 | .if !'po4a'hide' .B "\-w password" | |
4f16e7af | 181 | Proxy authentication password |
83915266 AJ |
182 | . |
183 | .if !'po4a'hide' .TP | |
184 | .if !'po4a'hide' .B "\-W password" | |
4f16e7af | 185 | WWW authentication password |
83915266 | 186 | . |
06952d61 AJ |
187 | .SH AUTHOR |
188 | Derived from Harvest. Further developed by by numerous individuals from | |
189 | the internet community. Development is led by Duane Wessels of the | |
190 | National Laboratory for Applied Network Research and funded by | |
191 | the National Science Foundation. | |
83915266 AJ |
192 | . |
193 | .SH COPYRIGHT | |
c871f41e | 194 | Distributed under the GNU General Public License (GNU GPL) version 2 or later (GPLv2+). |
83915266 AJ |
195 | . |
196 | .SH QUESTIONS | |
197 | Questions 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 |
202 | See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report. |
203 | .PP | |
83915266 AJ |
204 | Report bugs or bug fixes using http://bugs.squid-cache.org/ |
205 | .PP | |
206 | Report serious security bugs to | |
207 | .I Squid Bugs <squid-bugs@squid-cache.org> | |
208 | .PP | |
209 | Report 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)" |