Why does HttpWebRequest have everything EXCEPT the Host property?
Error I am getting:
Error 2 'System.Net.HttpWebRequest' does not contain a definition for 'Host' and no extension method 'Host' accepting a first argument of type 'System.Net.HttpWebRequest' could be found (are you missing a using directive or an assembly reference?)
I need the Host property. Anyone know how I can add the Host property to the HttpWebRequest class or any way around it?
Can I just add this?:
string host = "http://www.somewebsite.com";