]>
Commit | Line | Data |
---|---|---|
4f16e7af | 1 | .TH squidclient 1 "Squid Web Client Tool" |
06952d61 | 2 | .SH NAME |
4f16e7af | 3 | squidclient -- 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 |
61 | is a tool providing a command line interface for retrieving URLs. | |
62 | Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy. | |
d5b26acf | 63 | This tool can be combined with scripts to perform any basic HTTP operation. |
4f16e7af AJ |
64 | Some additional features for access to the |
65 | .B Squid | |
66 | proxy object cache and management information are provided. | |
06952d61 | 67 | .SH OPTIONS |
ef8d9073 | 68 | .if !'po4a'hide' .IP "\-a" |
4f16e7af AJ |
69 | Do NOT include Accept: header. |
70 | .IP "\-g \fIcount\fP" | |
71 | Ping mode, perform | |
72 | .I count | |
73 | iterations (0 to loop until interrupted). | |
06952d61 AJ |
74 | .IP "\-h \fIhost\fP" |
75 | Retrieve URL from cache on hostname. Default is localhost. | |
4f16e7af AJ |
76 | .IP "\-H \fI'string'\fP" |
77 | Extra headers to send. Use '\\n' for new lines. | |
78 | .IP "\-i \fItime\fP" | |
79 | If-Modified-Since time (in Epoch seconds). | |
80 | .IP "-I \fIinterval\fP" | |
81 | Ping interval in seconds (default 1 second). | |
82 | .IP "\-j \fIhosthdr\fP" | |
83 | Host header content | |
84 | .IP "\-l \fIhost\fP" | |
85 | Specify a local IP address to bind to. Default is none. | |
06952d61 AJ |
86 | .IP "\-m \fImethod\fP" |
87 | Request method, default is GET. Squid also supports a non-standard method | |
88 | called \fBPURGE\fP. You can use that to purge a specific URL from the cache. | |
89 | You 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" |
96 | Port number of cache. Default is 3128. | |
97 | .IP "\-P \fIfile" | |
98 | PUT request. Using the named file. | |
99 | .IP "\-r" | |
100 | Force cache to reload URL. | |
101 | .IP "\-s" | |
102 | Silent. Do not print data to stdout. | |
103 | .IP "\-t \fIcount\fP" | |
104 | Trace count cache-hops | |
105 | .IP "\-T \fItimeout\fP" | |
106 | Timeout value (seconds) for read/write operations. | |
107 | .IP "\-u \fIuser\fP" | |
108 | Proxy authentication username | |
109 | .IP "\-U \fIuser\fP" | |
110 | WWW authentication username | |
111 | .IP "\-v" | |
112 | Verbose. Print outgoing message to stderr. | |
113 | .IP "\-w \fIpassword\fP" | |
114 | Proxy authentication password | |
115 | .IP "\-W \fIpassword\fP" | |
116 | WWW authentication password | |
117 | .IP "\-V \fIversion\fP" | |
118 | HTTP 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 |
123 | Derived from Harvest. Further developed by by numerous individuals from | |
124 | the internet community. Development is led by Duane Wessels of the | |
125 | National Laboratory for Applied Network Research and funded by | |
126 | the National Science Foundation. |