You moved a site and want to see the new server answer before you change the DNS record.
curl -I --resolve example.com:443:203.0.113.10 https://example.com/
The request goes to the IP you gave, but curl still uses example.com for the Host header and the certificate check. That is the whole point: you test the real site name on the new machine. The address above is a documentation example, put your own server in there.
Further reading: curl documentation: –resolve