Issue 1447: Pass proper Host header and SNI when SRV is used with curl.