|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
HTTPBrowserCapabilities QuestionI'm writing a C# app which analyzes and reports on IIS web logs. I've
got it producing numbers for hits, visits, ips, etc. but I'm having trouble parsing the UserAgent string so I can get Browser, OS, and Version information. So I saw this great System.Web.HTTPBrowserCapabilities object which will parse the User Agent string for me and tell me everything I need. Only problem is there's no easy way to create an instance of this object except by actual getting a request from a browser... Any ideas of how to use this object's user agent parsing capabilities on a string that I supply? Thanks. I doubt it. You might have an entry point with the static
HttpcababilitiesBase.GetConfigCapabilities method. But you'll need to set up so much pseudo-request stuff that it won't be worth it. Karl -- Show quoteHide quoteMY ASP.Net tutorials http://www.openmymind.net/ http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX! <kevinwja***@gmail.com> wrote in message news:1135304338.917207.205140@g49g2000cwa.googlegroups.com... > I'm writing a C# app which analyzes and reports on IIS web logs. I've > got it producing numbers for hits, visits, ips, etc. but I'm having > trouble parsing the UserAgent string so I can get Browser, OS, and > Version information. > > So I saw this great System.Web.HTTPBrowserCapabilities object which > will parse the User Agent string for me and tell me everything I need. > Only problem is there's no easy way to create an instance of this > object except by actual getting a request from a browser... > > Any ideas of how to use this object's user agent parsing capabilities > on a string that I supply? > Thanks. >
Other interesting topics
How to Remote a custom membership or profile provider ???
Populating FormView (asp.net 2.0 using vb.net) HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData' do Unable to create the Web (W2003Std + Framework 2.0) remotely Adding domain user to local groups download trial version of vs2005 Finally moving from classic asp to ASP.NET 2.0 w/Visual Studio 2005 Where to set timeout Quotes, tags, and "greater than" signs GridView with dropdown: asp.net 2.0 |
|||||||||||||||||||||||