Added support for servers without curl