Interview Prep/Networking/Rapid-Fire Commands

Rapid-fire: how do you send a request to a specific backend IP while keeping the Host header and SNI?

BeginnerProductionRapid-Fire Commands
Answer
curl --resolve app.example.com:443:10.0.1.10 https://app.example.com/health

Using -H "Host: ..." against the IP works for HTTP but sends the wrong SNI over HTTPS, so --resolve is the right tool.

All Networking questions Roadmap: Networking for DevOps

More on Rapid-Fire Commands