Solves #2071, IPV6 support for proxy, by trying to resolve proxy host name without specific IP address family. If it fails, it attempts a different IP family, and in case that succeeds, it sets up HTTP client profile to use IP family that worked.