This is one neat trick. For vhosts you can connect with an IP yet provide the right host name with the following:

 wget http://1.1.1.1/  --header 'Host: www.example.com'