Using getaddrinfo works fine for IPv6, IPv4 and host name. Code is common for all cases.

Here are some examples using eidas2.testbed.fi-ware.eu :


IP v6
-------
3@14:25:13  socketHttpConnect[61]: Generic Connect to: '2001:720:1514:80::44'  port: '1026'
5@14:25:13  sendHttpSocket[183]: Received from HTTP server:
HTTP/1.1 200 OK

IP v4
-------
3@14:29:03  socketHttpConnect[61]: Generic Connect to: '130.206.80.44'  port: '1026'
5@14:29:03  sendHttpSocket[183]: Received from HTTP server:
HTTP/1.1 200 OK

Hostname
--------------
3@14:30:19  socketHttpConnect[61]: Generic Connect to: 'eidas2.testbed.fi-ware.eu'  port: '1026'
5@14:30:19  sendHttpSocket[183]: Received from HTTP server:
HTTP/1.1 200 OK



Fixed in 0cc248b