Update debug script with curl test