locked
I had to change IE's User Agent. However, there are several problems. RRS feed

  • Question

  • I had to change IE's User Agent. However, there are several problems.

    I wrote the following C# code : 

    RegistryKey reg = Registry.Currentuser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", true);
    reg.SetValue(null, "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3");

    So, I have succeeded to change the UserAgent.

    ( ↑ http://esolution.se/whatsmyinfo)

    But, Browser / OS / Is Mobile Device is not changed.

    What should I do to be as follow(Browser User Agent Switcher)?

    Thanks for reading. Sorry immature to English.




    • Edited by Neeek Thursday, July 31, 2014 2:04 PM
    • Moved by Caillen Monday, August 4, 2014 2:24 AM
    Thursday, July 31, 2014 1:55 PM

Answers

  • This is more related to ASP.NET and web development as it involves browser agent strings. Please post this question in the ASP.NET forums (http://forums.asp.net ).
    • Proposed as answer by Caillen Monday, August 4, 2014 2:24 AM
    • Marked as answer by Just Karl Friday, September 19, 2014 9:18 PM
    Thursday, July 31, 2014 2:27 PM