pass host header curl code example Example: curl host header curl --header "Host: example.com" http://127.0.0.1/