I'm trying to test the availability of web pages that are behind a load balancer. So I would like to write a powershell script to load a page from each web server individually. The problem is that the server uses host headers, so I can't manually specify the ip address, and I can't use just the url because it might get load balanced to a different server. Ideally, I'm looking for something like this.
$wc = New-Object net.webclient
$wc.downloadString("10.0.0.1", "http://test.com/home.html")
But I can't figure out how to do it. I'd perfer powershell, but if there is another windows utility that can do the job, I would be open to the idea.