Debugging with Curl Get link Facebook X Pinterest Email Other Apps - June 12, 2017 For years I used --header "host: foo.bar" to make curl do the right thing when testing. Turns out there is a better way curl -svo /dev/null https://www.foo.bar --resolve www.foo.bar:443:127.0.0.1 Read more