curl -z. Couldn’t be any simpler, and I didn’t know about it.