Virtual host support

The modified version with virtual host support is available at https://github.com/kabalin/check_http_redirect

With optional -H parameter it is possible to specify ‘Host’ request header attribute. This is particulary useful when webserver is behind loadbalancer and hosting several virtual hosts at the same address. If particular virtual host on the webserver redirection check is required, specify the hostname or IP in the -U parameter and the virtual host using -H parameter:

check_http_redirect.pl -U http://webserver1.com -H somesite.com -R https://somesite.com