Safe calling of curl