DOC: management: httpclient can resolve server names in URLs

The httpclient does support DNS resolution since 2.6.

Must be backported to 2.6.

(cherry picked from commit 9ae05bb1e082577858e9f51e04f8ef0c7cb25383)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
This commit is contained in:
William Lallemand 2022-09-29 15:00:15 +02:00 committed by Christopher Faulet
parent 430b18d027
commit 7fe5c4d5d2

View File

@ -2121,8 +2121,11 @@ help [<command>]
httpclient <method> <URI>
Launch an HTTP client request and print the response on the CLI. Only
supported on a CLI connection running in expert mode (see "expert-mode on").
It's only meant for debugging. It currently can't resolve FQDN so your URI must
contains an IP.
It's only meant for debugging. The httpclient is able to resolve a server
name in the URL using the "default" resolvers section, which is populated
with the DNS servers of your /etc/resolv.conf by default. However it won't be
able to resolve an host from /etc/hosts if you don't use a local dns daemon
which can resolve those.
new ssl ca-file <cafile>
Create a new empty CA file tree entry to be filled with a set of CA