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