I'm building a windows form using a web browser. I have a URL and I want the web browser to display the mobile site. For example:
If I type: www.facebook.com, I want the web browser to navigate to: m.facebook.com. How do I pretend to be a mobile phone? I don't know what I need to do to solve my problem. I'm using Visual Studio 2012 - winform - c#.
I tried this:
WebClient client = new WebClient();
client.Headers["User-Agent"] = "myUserAgentString";