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