Split curl command to avoid length limit