squidclient(1)
π squidclient(1) π
okay bestie, welcome to the General Commands Manual entry for squidclient β yes, that's section 1, we're in the big leagues now β¨
πΈ NAME πΈ
squidclient β a simple HTTP web client tool π¦
β¨ SYNOPSIS β¨
squidclient [ -aknNrsv ] [ --ping [ping-options] ] [ --https]
[tls-options] [ -A string ] [ -h | --host remote host ] [ -H ' string '
] [ -i IMS ] [ -j ' Host header ' ] [ -l | --local host ] [ -m method ]
[ -p | --port port ] [ -P file ] [ -t count ] [ -T timeout ] [ -u user ]
[ -U user ] [ -V version ] [ -w password ] [ -W password ] url
Ping options: [ -g count ] [ -I interval ]
TLS options: [ --anonymous-tls ] [ --trusted-ca CA certificates file
...] [ --cert client X.509 certificate file ] [ --params TLS session
parameters ]
π DESCRIPTION π
So like. squidclient is a tool that gives you a whole command line interface for grabbing URLs. fr fr. It was literally designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy π«Ά
And the way that it can be combined with scripts to perform any basic HTTP operation? iconic. It's giving "I'm the main character of your shell pipeline" π
Plus there's bonus content: some extra features for access to the squid proxy object cache and management information are provided π
π OPTIONS π
-aβ Do NOT include theAccept:header. nope, not today π-A 'string'β Send string as theUser-Agent:header. And if you wanna omit the header completely, set string to empty (''). bye bestie π-h|--hosthost β Retrieve the URL from server host. Default islocalhost. (very homebody of it, honestly)-H 'string'β Extra headers to send. Use'\n'for new lines.-itime βIf-Modified-Sincetime (in Epoch seconds). β°-jhosthdr βHostheader content.-kβ Keep the connection active. Default is to do only one request then close. lowkey clingy but we respect it π-l|--localhost β Specify a local IP address to bind to. Default is none.-mmethod β Request method, default isGET. Squid also supports a non-standard method calledPURGE. You can use that to purge a specific URL from the cache π₯ You need to have purge access setup insquid.confsimilar to manager access. Here is an example:
acl purge method PURGE
http_access deny purge !localhost
-nβ Proxy Negotiate(Kerberos) authentication. Usekinit username@DOMAINfirst to get initial TGS.-Nβ WWW Negotiate(Kerberos) authentication. Usekinit username@DOMAINfirst to get initial TGS.-pport β Port number of cache. Default is3128.-Pfile β Request body. Using the named file as data.-rβ Force cache to reload URL. β¨ refresh era β¨-sβ Silent. Do not print data to stdout. shhh π€«-tcount β Trace count HTTP relay or proxy hops.-Ttimeout β Timeout value (seconds) for read/write operations.-uuser β Proxy authentication username.-Uuser β WWW authentication username.-vβ Verbose. Print outgoing message to stderr.-Vversion β HTTP Version. Use'-'for HTTP/0.9 omitted case.-wpassword β Proxy authentication password.-Wpassword β WWW authentication password.--httpsβ Use Transport Layer Security on the HTTP connection. secure girl summer π--anonymous-tlsβ Use TLS with unauthenticated (anonymous) certificate.--certfile β File containing client X.509 certificate in PEM format. May be repeated to load several client certificates. the more the merrier π--trusted-cafile β File containing trusted Certificate Authority (CA) certificates in PEM format. May be repeated to load any number of files.--paramsvalues β TLS library specific parameters for the communication session. See the library documentation for details on valid parameters. GnuTLS:http://gnutls.org/manual/html_node/Priority-Strings.htmlIf repeated only the last value will have effect. (so like, don't bother repeating it, bestie, only the last one counts π)--ping [options]β Enable ping mode. Optional-gand-Iparameters must follow immediately if used. Repeated use resets to default ping settings.-gcount β Ping mode, perform count iterations (default is to loop until interrupted). π-Iinterval β Ping interval in seconds (default 1 second).
π«Ά AUTHOR π«Ά
This program and manual was written by Amos Jeffries <amosjeffries@squid-cache.org> π₯Ή
Based on original code derived from Harvest and further developed by numerous individuals from the internet community. a whole village, no cap π
π COPYRIGHT π
* Copyright (C) 1996-2025 The Squid Software Foundation and
contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
π QUESTIONS π
Questions on the usage of this program can be sent to the Squid Users mailing list <squid-users@lists.squid-cache.org> β they don't bite, fr fr π
π REPORTING BUGS π
See https://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report. (read it before you send it, bestie, please π)
Report bugs or bug fixes using https://bugs.squid-cache.org/
Report serious security bugs to Squid Bugs <squid-bugs@lists.squid-cache.org> π₯
Report ideas for new improvements to the Squid Developers mailing list <squid-dev@lists.squid-cache.org> π
π SEE ALSO π
and that's the whole thing, bestie!! you just read squidclient(1) from the General Commands Manual top to bottom and honestly? slay πβ¨ go ping something ππ
π¦ where this page comes from
- fedora 43: squid 7:6.14-2.fc43 Β· GPL-2.0-or-later AND (LGPL-2.0-or-later AND MIT AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSD-4-Clause-UC AND LicenseRef-Fedora-Public-Domain AND Beerware)
- opensuse-leap 16.0: squid 6.14-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: squid 6.14-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: squid 6.14-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: squid 6.14-160000.1.1 Β· GPL-2.0-or-later
- ubuntu noble: squidclient 6.14-0ubuntu0.24.04.4
- ubuntu noble: squidclient 6.14-0ubuntu0.24.04.5
- ubuntu questing: squidclient 6.14-0ubuntu0.25.10.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms