useragent

Parsing HTTP User-Agent string

What is the best method to parse a User-Agent string in Python to reliably detect Browser Browser version OS Or perhaps any helper library that does it ...

Change browser levels in Sharepoint.

I have a very peculiar problem. I had written some custom columns for SharePoint. Recently, I found these custom columns break when I group the list items in SharePoint. Now the problem is peculiar because, these custom columns work perfectly in FireFox browsers, they break only in IE! After googling around for browser compatiblity i...

Is there any concurrent HTTP requests limitation for Silverlight?

I know that RFC requires UserAgent to have a limit of max 2 http connection to single server. In fact, most browsers have the limit larger than 2. The question is whether Silverlight have such limitation. Does it follow limit of hosting web browser? or does it has its own max connection limit? ...

Mocking a useragent in javascript?

I'm looking for a way to programmatically change navigator.userAgent on the fly. In my failed attempt to get an automated javascript unit tester, I gave up and attempted to begin using fireunit. Immediately, I've slammed into one of the walls of using an actual browser for javascript testing. Specifically, I need to change navigator.use...

Dynamically change url or WordPress theme if UserAgent is iPhone.

Is there any way to do this? My website is http://kennethreitz.com. Its driven by some moderate PHP on top Wordpress. My options are to detect if the user is using an iphone, and if they are either a) tell wordpress to load a different "theme" that i have written. b) if this isn't possible, have a different wordpress installation on ...

iPhone App: Making a webpage accessible only to people using a specific app.

Hi all! I was just wondering if it is possible and if so what the best way to create a web-page that is only accessible from a custom iPhone application? For example, if you tried to access the webpage from the iPhone's built in browser, or any other browser it would display an error page but when accessed from a custom built applicatio...

Is there a workaround to IE7's user agent being defaulted after installing .Net Framework 3.5 SP1?

I have verified that after installing the .Net Framework 3.5 SP1, when the User Agent string exceeds a certain number of characters, the user agent is defaulted to 'userAgent string:Mozilla/4.0 (compatible; MSIE 6.0)'. I've verified this behavior on several machines but can't seem to find a suitable workaround. This is preventing some Si...

User Agents for Mobile Devices

Hi Everyone, I am looking for a list of common mobile device user agents.. apparently i am not able to find one. Can anyone please point me in the right direction Thanks ...

Is there a bug in ASP.NET's User-Agent interpretation for custom builds of Firefox?

For the user agent string Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) HttpContext.Current.Request.Browser.MajorVersion returns 3 and HttpContext.Current.Request.Browser.MinorVersion returns 5. So far so good. However for this user agent string (seen in the wild by one of m...

Is there user agent detection code for none smartphones out there?

Hi all, I'm looking to write an ASP.Net MVC ActionFilter to redirect users of mobiles that aren't in the ambiguos smartphone category to our WAP site. Does anyone know of such code out there? I've found http://detectmobilebrowser.com/, http://mdbf.codeplex.com/ and http://www.51degrees.mobi/Products/NETMobileAPI already. I prefer the ...

How do I do this with the user agent?

If the user-agent includes the word "myapp", then alert('hi'); BTW, I am using JQuery. ...

Selenium-rc: is there a way to change the user-agent without changing the Firefox profile

I want to run tests that change the user-agent in the http request sent from the browser (like the FF add-on, user agent switcher does). I saw you can do it by playing with the FF profile (http://seleniumhq.org/docs/09_webdriver.html). Is there a way to do it within a test? Something like the function addCustomRequestHeader() that sets ...

Alter Regular Expression to Return 2 Values Instead of 3 from userAgent String

I've taken a regular expression from jQuery to detect if a browser's engine is WebKit and gets it's version number, it returns 3 values extracted from the userAgent string: webkit/….…, webkit and ….… [“….…” being the version number]. I would like the regular expression to return just 2 values: webkit and ….…. I'm rubbish at regular exp...

How do I prevent access to a php script if not called with a comandline application like curl

How do I prevent access to a php script if not called with a comandline application like curl? I'm working on a web application and it uses a cron script to run it's services. I'm using codeigniter so I have to use a url not a file path. ...

WP plugin based on useragent

I am writing a plugin which does some js stuff, but does not work for other browsers than FF . I've thought why not execute the plugin for the browsers which support it. I've added the code, but for some reason when I activate the plugin and check the site with a FF all I get is blank page. If I visit with a IE the site is shown correctl...

Cocoa Launch agent registering itself after installation.

I have created Cocoa app which is type of launch agent. To distribute this I have created package as well which installs the app and copies the launchagnet plist file in /Libraries/LaunchAgents. Now the problem is after installation i want this app to be running in user context immediately without logoff/restart. If I register this with...

Opera Mobile for Windows + Reported Screen Size

I know this isn't a direct programming question, but's it's kinda relevant as I'm trying to get a good testing environment set up before I embark on my latest project. I'm trying to set up Opera Mobile for Windows to allow me to test a new website. The UserAgent I get is a fairly generic one, so my workaround is to tweak my mobile.brows...

Writing a script to bypass college login page

My college has a silly login page that requires you to download a whole bunch of garbage that a lot of us don't need (Norton Anti-virus, Antispyware software, etc.). We have to have them running to get on the internet on campus. Though, if you are on Linux, or at least set your user-agent to linux, the requirements are gone. We could ...

HttpWebRequest.UserAgent : What does it do

I read this MSDN like about it and ran its example. http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.useragent.aspx when I change the uSerAgnet to something like "blah", the output is wrong but when I use the same thing that is in the example of even when I comment out the line of code that is setting the UserASgent, th...

IIS7 log files reporting mass errors from weird user agent: Mozilla/4.0+(compatible;)

I'm getting a ton of weird log entries reporting: cs-uri-stem: /ErrorInvalidURL.aspx (my custom 404 page) cs-uri-query: aspxerrorpath=/Portals/0/Skins/MyCustomSkin/ErrorInvalidURL.aspx (seems to be coming from my skin folder) I did some queries with LogParser and the majority of these errors are coming from the user agent: Mozilla/4....