Got doCurl working correctly