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