Format curl calls