Updated curl to work with https URLs