added reasons comment in curl() for not using resolved host