For some reason this doesn't work
Invoke-RestMethod -Uri "http://localhost" -Headers @{"Host"="web.domain.com"}
I get the error
The 'Host' header must be modified using the appropriate property or method
But I can't find the method or property on how to do this.
Thanks