add ipv6 support to get curl