- add referer from the resolve section to connect-to if user wants
wildcard for the port number
Closes #13989
A hostname specified to this option is compared as a string, so it needs to
match the name used in request URL. It can be either numerical such as
`127.0.0.1` or the full host name such as `example.org`.
+
+Example: redirect connects from the example.com hostname to 127.0.0.1
+independently of port number:
+
+ curl --connect-to example.com::127.0.0.1: https://example.com/
+
+Example: redirect connects from all hostnames to 127.0.0.1 independently of
+port number:
+
+ curl --connect-to ::127.0.0.1: http://example.com/
curl tries to resolve the host as it normally would once the timeout has
expired.
+To redirect connects from a specific hostname or any hostname, independently
+of port number, consider the --connect-to option.
+
Support for providing the IP address within [brackets] was added in 7.57.0.
Support for providing multiple IP addresses per entry was added in 7.59.0.