3
голосов
2ответов
2588 просмотров

How can the user-agent be changed in Maven?

How can I change the user-agent in Maven? I need to be able to change this to get through the company firewall. I am using version 2.2.1 and I noticed an improvement in the 2.0.10 release notes: [MNG-3652] - set a user agent for Maven HTTP requests.

0
голосов
1ответов
2125 просмотров

Can Zend_Soap_Client set custom user-agent?

I have Zend_Soap_Server. It should be tested. One issue - unit testing and development modes should work with different databases. It can be done via .htaccess: SetEnvIfNoCase User-Agent (.*) APPLICATION_ENV=development SetEnvIfNoCase User-Agent testing APPLICATION_ENV=testing It would work fi...

0
голосов
2ответов
2287 просмотров

Alternative to User-Agent in .jsp

Sometimes in my .jsp i use User-Agent in order to define what .css class or attribute to use dependently upon client's browser. example: <c:set var="browser" value="${header['User-Agent']}" scope="session"/> <c:if test="${(fn:contains(browser,'Safari'))||(fn:contains(browser,'...

5
голосов
1ответов
2393 просмотров

Change user agent in Eclipse 3.5 for new software installations

How can the user-agent be changed in Eclipse 3.5? I tried adding the property -Dhttp.agent=my user agent to the eclipse.ini file, but using WireShark I can see that the user agent is still Jakarta Commons-HttpClient/3.1. I need to change this so that I can get through the company's filter to down...

6
голосов
3ответов
1911 просмотров

HTML and CSS in URLs causing 404 errors (User Agent = Trident/4.0)

I've been getting some 404s with snippets of code (CSS, HTML and JavaScript) in the URL. As best as I can tell the user is progressing through the site just fine during their session - its an ecommerce site and the affected users are putting stuff in their basket and checking out OK etc. On cer...

37
голосов
2ответов
21814 просмотров

Looking for a Java User Agent String Parser

Does anyone know of a great library in java for parsing user agent strings? We have written a custom one, but this seems like a common problem for many people. I would guess there is a good library available somewhere. For example, the user agent string... "Mozilla/5.0 (Windows; U; Windows NT ...

37
голосов
10ответов
54793 просмотров

Is there an online user agent database?

How do you parse your user agent strings? I'm looking to get: Browser Browser Version OS OS Version from a user agent string. My app is written in perl and was previously using HTTP::BrowserDetect. It's a bit dated and is no longer maintained. (Edit: it's since been updated.) I'm in no way ti...

6
голосов
2ответов
16300 просмотров

HttpURLConnection in android doesn't send correct User-Agent header

I have found an issue. I have a server that uses User Agent header to identify the device that is connecting to it. But when i connect to the server using HttpURLConnection i get no User Agent header, but when i connect with the browser it sends the correct User Agent. For testing i am using an ...

7
голосов
3ответов
9467 просмотров

HTML Parsing Error

I can't find out what the problem is, and why I keep receiving this error in Internet Explorer 8, as it's the only error that I am receiving. Any thoughts as to what it means, or a simple solution? I haven't noticed any problems with my code though, it's just the message that bugs me. Webpage er...

1
голосов
1ответов
1305 просмотров

Blackberry User Agent

I'm hitting a mobile site from a new Blackberry and the user agent is: mozilla/5.0 (windows, u; windows nt).... Anyone else seen this? On older phones it was blackberry8130...

10
голосов
1ответов
5895 просмотров

Safari's user agent: which WebKit version to trust?

I'm trying to extract not just the browser and its version number but also the rendering engine and its version number from common user-agent strings. Most browsers report this just fine, e.g.: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)" "Mozilla/5.0 (Windows; U; Windows N...

3
голосов
2ответов
5942 просмотров

How to block some of http user agent using php

there have a way to block some of user agent via php script? Example on mod_security SecFilterSelective HTTP_USER_AGENT "Agent Name 1" SecFilterSelective HTTP_USER_AGENT "Agent Name 2" SecFilterSelective HTTP_USER_AGENT "Agent Name 3" Also we can block them using htaccess or robots.txt by exam...

2
голосов
5ответов
6642 просмотров

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, h...

2
голосов
6ответов
2294 просмотров

How to determine if a user accessing your website is not a bot?

I know that user agents are one indicator, but that's easy to spoof. What other reliable indicators are there that a visitor is really a bot? Inconsistent headers? Whether images/javascript are requested? Thanks!

2
голосов
4ответов
1886 просмотров

Detecting Windows 7 with Google Analytics

This question might belong on one of the other trilogies, but it sorta seemed to be the best place. I have google analytics set up, but it doesn't seem to detect Windows 7. I'm on Win7 myself, so I know there should be at least some number of Win7-users. The user agent for Win7 is NT 6.1, and g...

0
голосов
1ответов
556 просмотров

Why does this user-agent keep asking for favicon.ico and nothing else

Of all the things that I'd think a UA would cache it would be a favicon. One useragens seems to request it every 5 to 10 minutes Safari5531.9 CFNetwork/438.14 Darwin/9.8.0 (i386) (MacBookPro5%2C1) I will assume that this is a MacBookPro 5.1 running Safari 4.02, but what does is it doing with ...

71
голосов
15ответов
64004 просмотров

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. Sp...

5
голосов
3ответов
2072 просмотров

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?

0
голосов
5ответов
6185 просмотров

Regex browser version match

I have a string: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) I want to know what version of Firefox is in the string (3.5.2). My current regex is: Firefox\/[0-9]\.[0-9]\.[0-9] and it returns Firefox/3.5.2 I only want it to ...

0
голосов
2ответов
1707 просмотров

IE6+, how to change User-Agent for Ajax requests too?

I want to make own browser application with own value of User-Agent. Browser based on CHtmlView. MFC. But exist strange problem with User-Agent from Ajax requests... I did: User-Agent value is used as argument to Navigate(). A Navigate() requests use right User-Agent. Overload of OnAmbientPr...

1
голосов
4ответов
2332 просмотров

Identify a cell phone by user-agent

Is there a good way to identify a cell phone or any other mobile device (which may be subject to a limited data plan) through the user agent or similar, easily accessible methods?

1
голосов
3ответов
505 просмотров

How can I differentiate mobile users, and why has this not worked?

I have a main site and a mobile site, and am looking at having Apache redirect users based on their reported user-agent as the next step up in providing a better mobile experience. E.g. a user who visits http://jonathanscorner.com/spectacles/ is redirected to http://jonathanscorner.mobi/?url=/spe...

0
голосов
1ответов
566 просмотров

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 ...

1
голосов
1ответов
2048 просмотров

Urlscan 3.1 block User Agent

I need to block requests from certain User Agents to our Sharepoint Environment that have been identified after going through the IIS logs. I have tried the below by amending the urlscan.ini config file and doing and iisreset, but it doesn't block anything. Am I entering the correct strings? I'...

20
голосов
10ответов
45334 просмотров

Перенаправить мобильные устройства на альтернативную версию моего сайта

У нас есть альтернативная версия нашего веб-сайта, готовая для мобильных устройств. Контент, который мы обслуживаем, отличается, и он хорошо работает. Как лучше всего определить, какую версию использовать. У нас нет списка всех мобильных устройств, поэтому использовать заголовок пользовательс...

217
голосов
6ответов
36136 просмотров

Почему пользовательские агенты всех браузеров начинаются с «Mozilla /»?

Все строки пользовательских агентов популярных браузеров, даже Internet Explorer, начинаются с Mozilla/. Почему это так?

1
голосов
1ответов
275 просмотров

Использование игровых концепций для создания пользовательских агентов в целях исследования рынка

Я работаю в компании по исследованию рынка в Интернете. Мы потратили все наши циклы на протяжении более полутора лет, создавая следующую большую вещь в этой области в отношении профилирования наших респондентов (с течением времени), чтобы лучше разместить их в доступных опросах. То, что один из ...

2
голосов
1ответов
3561 просмотров

Подмена пользовательского агента встроенного браузера Safari на iPhone?

Есть ли способ подделать пользовательский агент в Safari на iPhone? Так, например, вы должны создать приложение на iPhone со встроенным браузером Safari, однако любой веб-сайт, который пользователь посещает с этим браузером, не узнает, что вы используете Safari на iPhone, и будет думать, что ...

0
голосов
3ответов
524 просмотров

Сетка useragent javascript?

Кто-нибудь знает о существующей сетке строк пользовательского агента браузера / ОС? Это сложно протестировать, и мне бы очень хотелось, чтобы по возможности была широкая выборка строк пользовательского агента. Если такой сетки нет, не могли бы вы опубликовать строку агента-пользователя? Учиты...

5
голосов
3ответов
17211 просмотров

Пользовательский агент Java

Недавно я начал видеть на своем сайте пользовательские агенты, такие как Java / 1.6.0_14 (и их варианты) Что это значит. Браузер, бот или что-то еще?