Bad http.agent in Java properties : a bug in the HTTP user-agent string?

Hi all,
Me :
I'm patching AWSTATS (web log analyzer tool) in order to recognize which Java version has
been used to download files.
Context of the problem :
Each time a Java program (or applet) is downloading a file (for example .class, .png, .html)
from a web server, a line will be added in the web server log file. If the web server is well
configured, the user agent used to download the file will be at the end of the line in the log file.
For Sun Java JVM, the user agent string is configured in the Java properties under "http.agent".
Usually, the user-agent string contains the word "Java" and the virtual machine version. In most
cases, this is just a string like "Java/1.4.2", so this is relatively easy to parse.
Problem :
Looking in my web server stats, and then on the web, I found that a JVM's user-agent is
"Mozilla/4.0 (Windows XP 5.1)", which obviously does not contains the word "Java".
Consequently, it is difficult to say that this user-agent string belongs to a JVM.
Further look in my log files and on google shows that this http.agent string appears
on Microsoft Internet Explorer (it seems MSIE 6.0) over Windows XP with the J2RE plugin:
http://board.gulli.com/thread/300321
http://forum.java.sun.com/thread.jsp?thread=531295&forum=30&message=2559523
http://forum.java.sun.com/thread.jsp?forum=63&thread=132769&start=210&range=15&tstart=0&trange=15
http://forum.java.sun.com/thread.jsp?forum=32&thread=480899
http://www.goodidea.ru/setupJava/javaInstall.htm
The J2RE plugin version does not seems to play a role as this user-agent string has
been seen on 1.4.1_02-b06, 1.4.2_01, 1.4.2_03 and 1.4.2_04-b05.
Further information requested :
I would like to know:
1) if you have reported the same problem;
2) if there is some rules for the http.agent property;
3) if this is a bug.
Thank you very much, and feel free to add you opinion.
Julien

The web log files where the "Mozilla/4.0 (Windows XP 5.1)" user-agent appears can be displayed using the following search terms on google :
"Mozilla/4.0 (Windows XP 5.1)" -"(Windows XP 5.1) Java"
http://www.google.ch/search?hl=fr&ie=UTF-8&q=%22Mozilla%2F4.0+%28Windows+XP+5.1%29%22+-%22%28Windows+XP+5.1%29+Java%22&btnG=Rechercher&meta=
Julien

Similar Messages

  • [svn:bz-trunk] 9714: Bug: BLZ-424 - Incorrect user-agent string for Opera 10 in flex.messaging. client.UserAgentSettings

    Revision: 9714
    Author:   [email protected]
    Date:     2009-08-27 14:20:06 -0700 (Thu, 27 Aug 2009)
    Log Message:
    Bug: BLZ-424 - Incorrect user-agent string for Opera 10 in flex.messaging.client.UserAgentSettings
    QA: Yes
    Doc: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-424
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/client/UserAgentSettings.java
        blazeds/trunk/resources/config/services-config.xml

  • Is the Java "Zero-Day" bug dangerous for MountainLion users?

    Is the Java "Zero-Day" bug dangerous for MountainLion users?

    It is not yet dangerous, to my knowledge, as it is currently being used only to distribute Windows malware. But users of Java 7 are certainly vulnerable, should a hacker start distributing Mac malware through this vulnerability.
    For more info, see:
    http://www.reedcorner.net/new-unpatched-java-vulnerability-discovered/

  • Exploiting the parameter user-agent in ADF application

    hi all
    i'm using jdeveloper 11g and when information security test my APP they gave me report with Security Risk MED
    i try to solve all problems but still a one
    i dont know how to solve it and they insist to prevent deployment unless resolve this issue
    150022Syntax Error Occurred
    Category Information Disclosure
    Threat
    A test payload generated a syntax error within the Web application. This often points to a problem with input validation routines or lack of filters on
    user-supplied content.
    Impact
    A malicious user may be able to create a denial of service, serious error, or exploit depending on the error encountered by the Web application
    Detection Information
    Parameter It has been detected by exploiting the parameter user-agent
    The payloads section will display a list of tests that show how the param could have been exploited to collect the
    information
    #1 User-Agent: Mozilla/*
    #2 Cookie: JSESSIONID=6vYgRG1GGNyQxszysL4nnyg53SH48BMBkQvvnPhNKTCNvTy2gyKD!569345819
    please heeeeeeeeeeeeeeeelp

    hi Timo Hahn
    thnx for ur replay
    i m using jdev 11.1.2.1 and update it to 11.1.2.3 to try to solve but it still.
    all fields in the form are required and have a validator .
    the report for this issue is :
    #1 Response
    Vulnerable to slow HTTP headers attack Server resets timeout after accepting header data from peer.
    150022Syntax Error Occurred (1)
    150022Syntax Error Occurred
    URL: http://10.1.156.101:7001/ecs/faces/default New
    Finding # 85633583
    Category Information Disclosure
    CWE -
    OWASP A6 Security Misconfiguration
    WASC WASC-15 APPLICATION
    MISCONFIGURATION
    First Time Detected 18 Mar 2013 11:07AM GMT
    Last Time Detected 18 Mar 2013 11:07AM GMT
    Last Time Tested 18 Mar 2013 11:07AM GMT
    Times Detected 1
    Details
    Threat
    A test payload generated a syntax error within the Web application. This often points to a problem with input validation routines or lack of filters on
    user-supplied content.
    Impact
    A malicious user may be able to create a denial of service, serious error, or exploit depending on the error encountered by the Web application
    Detection Information
    Parameter It has been detected by exploiting the parameter user-agent
    The payloads section will display a list of tests that show how the param could have been exploited to collect the
    information
    Authentication In order to detect this vulnerability, no authentication has been required.
    Payloads (5 instances)
    #1 Request
    Payload /*
    Request GET http://10.1.156.101:7001/ecs/faces/default
    #1 User-Agent: Mozilla/*
    #2 Cookie: JSESSIONID=6vYgRG1GGNyQxszysL4nnyg53SH48BMBkQvvnPhNKTCNvTy2gyKD!569345819;
    Error 500--Internal Server Error
    java.lang.IllegalArgumentException: version must be non-empty
    at org.apache.myfaces.trinidad.context.Version._checkNonEmptyString(Version.java:200)
    at org.apache.myfaces.trinidad.context.Version.(Version.java:69)
    at org.apache.myfaces.trinidad.context.Version.(Version.java:54)
    at org.apache.myfaces.trinidadinternal.agent.TrinidadAgentImpl.(TrinidadAgentImpl.java:55)
    at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.getAgent(RequestContext
    please any help

  • My Safari systematically use the wrong User Agent and I cannot fix it

    My Safari systematically use the wrong User Agent and I cannot fix it

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults delete -app Safari CustomUserAgent
    Copy the selected text to the Clipboard by pressing the key combination command-C. Quit Safari.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Test.

  • Mozilla is lying when it says Java Script is unnecessary for the avcrage user.Java script is not working in Firefox 7.01

    I want to roll back to an earlier version Firefox that works with Java Script how can I do this. Where I can download an earlier version? You know what the problems are. I am NOT going to list them. Own up to your errors. You made an incorrect conscious decision to break with Java compatibility.

    Mozilla is not lying about average users, but it shows contempt for experienced users, or those that want to be able to get the more out of their browser, or use it for work or school.
    Java and JavaScript are not the same thing. I trust you are referring to JavaScript problems and a lot of collateral damage associated with the mess.
    # Prohibition on Webpages being able to resize or move windows with JavaScript
    # Prohibition on Users being able to move or resize windows with JavaScript
    # Ignoring the fact that there were already user controls in Tools > Options > Content > Javascript > Advanced
    # Making JavaScript inoperable from Location bar as a command, or in a keyword shortcut that involves moving resizing windows
    # Destroying use of AwesomeBar search, Bookmark searching for bookmarks containing JavaScript, making internal searches very unreliable
    Firefox 8 comes out November the 8th and it nor later versions show any reversal of this mess.
    Firefox 3.6.* should remain safe to use for some time, as corporate users will not put up with nonsense when they support thousands of users.
    For those that really need an older version of Firefox [ftp://ftp.mozilla.org/pub/firefox/releases releases] (all releases, including 4.0.1 and 5.0) or with the latest of [http://www.mozilla.com/en-US/firefox/all-older.html Firefox 3]. Mac OSX 10.4 users can't upgrade to 4.0.1
    When you reinstall a different version, at the end of the install, don't let the install start Firefox for you, rather exit, and then start Firefox in the normal manner to avoid inadvertently creating and using a new profile without your bookmarks, etc.
    What would be better would be to use multiple versions / profiles at the same time, which is certainly beyond average users, particularly when Mozilla has historically and purposely made such things difficult. But if interested see [http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox Using multiple profiles - Firefox - MozillaZine Knowledge Base]

  • [svn] 3026: Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java. lang.ClassCastException

    Revision: 3026
    Author: [email protected]
    Date: 2008-08-28 11:35:50 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java.lang.ClassCastException
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-370
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/websphere/flex/messaging/security/WebSphereLoginCo mmand.java

    Please test with the new Java Plug-In available in 6u10 at http://jdk6.dev.java.net/6u10ea.html. The Java/JavaScript bridge has been completely rewritten and is now more complete and portable than ever before. Longstanding issues should be fixed with this new version. Please try it and post if you continue to have problems.

  • Mac OSX 10.9.4 coldfusion 11 standalone server ERROR: HTTP Status 500 - java.lang.NullPointerException

    Hi all.
    I have installed the cold fusion server.
    at first with mac server, apache..... but after install cold fusion and want to go to the admin page:
    HTTP Status 500 - java.lang.NullPointerException
    I deinstalled the server from mac and cold fusion..
    after a fresh install of coldfusion 11 and use the build in server..
    the same error..
    does anybody knows the problems?
    I Use Java 7 Update 67
    A friend of me have installed it .. it runs
    greetings thorsten

    Hi this is my cold fusion Error LOG
    java.lang.NullPointerException
      at coldfusion.CfmServlet.init(CfmServlet.java:97)
      at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
      at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Sep 16, 2014 8:30:59 AM org.apache.catalina.core.ApplicationContext log
    INFO: failed to load: coldfusion.CfmServlet
    Sep 16, 2014 8:30:59 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet CfmServlet
    java.lang.NullPointerException
      at coldfusion.CfmServlet.init(CfmServlet.java:97)
      at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
      at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

  • Disabling HTTP on AS Java

    Hello Colleagues,
    after configuration to HTTPS on AS Java 7.0 Server we have to disable all HTTP connectivity now.
    I found different discussion to that issue but I am still not sure what are the right way.
    Please help to clarify this point to me.
    Many thanks in advance!
    Regards,
    Jochen

    Hi Jochen,
    In order to disable the HTTP access to your Java AS. You will have to login to Visual Administrator, and then under Service, go to the HTTP Provider details. You will find a value specifying both http and https values (if already configured). You can remove the http part, which will allow you to remove the http access.
    Regards,
    David

  • Java properties file

    Hi ,
    I am using trying to write data to a java properties file , by using the setProperty method and somehow the order of the data is not by the order of inserting it ,Is there a way to use the setProperty method and still keep the order of data in the file after storing it.
    Thanks.

    Eddie404 wrote:
    I am using trying to write data to a java properties file , by using the setProperty method and somehow the order of the data is not by the order of inserting it ,Is there a way to use the setProperty method and still keep the order of data in the file after storing it.It shouldn't matter what order the Properties class uses to write its data. If it does, you aren't doing something right.
    If the order matters, that suggests that somebody is responsible for maintaining the properties via a text editor, or something like that. In which case you shouldn't be using a Properties object which modifies the property file. But as soon as you start having two different processes to maintain the file, you're going to run into trouble. So simplify your life and stop doing that. Either maintain it through the program, or through the text editor, but not both ways.

  • Agent filter issue with IBM Web Sphere portal 6 , polic Agent 2.2 , AM7

    HI We are protecting the user console for websphere portal 6.0.
    We have added the agent filter in the web.xml as per
    http://docs.sun.com/app/docs/doc/820-3921/gatak?a=view
    <filter id="Filter_PolicyAgent">
    <filter-name>Policy Agent</filter-name>
    <filter-class>com.sun.identity.agents.filter.AmAgentFilter</filter-class>
    </filter>
    <filter-mapping id="FilterMapping_PolicyAgent">
    <filter-name>Policy Agent</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    after restarting when we are hitting the userconsole
    http://abc:10038/wps/portal then its showing the HTTP 500 - Internal server error
    Belowe are the errors in the webportal logs.
    java.lang.ExceptionInInitializerError
         at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:641)
         at com.sun.identity.agents.filter.AmAgentBaseFilter.initializeFilter(AmAgentBaseFilter.java:189)
         at com.sun.identity.agents.filter.AmAgentBaseFilter.getAmFilterInstance(AmAgentBaseFilter.java:251)
         at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:36)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3177)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: java.lang.RuntimeException: Failed to get configuration file:AMAgent.properties
         at com.sun.identity.agents.arch.AgentConfiguration.setConfigurationFilePath(AgentConfiguration.java:412)
         at com.sun.identity.agents.arch.AgentConfiguration.bootStrapClientConfiguration(AgentConfiguration.java:475)
         at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:859)
         at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1136)
    Please help, its urgent.

    i have followed line to line as per post installation tasks given in sun site. No logs are generated in policy agent. i.e
    bcoz policy agent is not at all intercepting the request. do we need to do any thing more to add a filter in websphere 6.1
    To give you background:
    This is a clustered enviornment and each node has 3 instances [ appserver,nodeagent, websphere_portal]
    we have installed the policy agent on each of the instances.
    Now when i access the admin interface my policy agent intercept redirect to SSO.
    When i access portal instance policy agent doesnt intercept
    there are no logs generated in accessmanager or policagent.
    Edited by: sat on Jun 29, 2008 11:18 AM

  • Verify if website use user agent information

    i want to connect to a website, using  different browser but i think this website use user agent information because when using blackberry browser ; the website close the connection /Session after i have been log. 
    So i want to use the user agent switcher plug in that could be use with mozilla firefox but i don't know which values i have to use to make mozilla behave like a blackberry browser even if i go to some website that show my browser setting ( http://www.spyber.com/ )
    mozilla plug ask thoses values
    Description ,User Agent:, App Name, App Version, Platform, vendor , Vendor Sub :
    spyber show this parameters:
    Your user agent, Your Browser, Screen information, Screen resolution,Color depth, Javascript check
    As i see i can not customize /change colorDepth and screen resolution in mozilla plug in so change user agent could not be efficient if the website ask for this value .
    so
    1) is there a way to use PC browser and change all meta data that a browser send to the webserver ?
    2) where i could find all the value for a my blackberry device ?
    thank's for any helps 

    @michel45
    I have a similar question here:
    http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/I-have-a-User-Agent-value-what-i...
    Did you ever figure out all of the correct values?
    --Todd
    Windows 7 Enterprise 64-bit (6.1 Build 7600) | Java SE Runtime Environment (build 1.6.0_24-b07) | Eclipse Version: 3.6.2 [M20110210-1200] | BlackBerry Eclipse Plug-in: 1.3.0.201102031007-19 | Java Compiler level: 1.3 | Targeting devices running OS 5 | Simulators: JDE 5.0 packaged 9700, 9630, 9300

  • How to get iphones / ipad user agent for internet access

    Hi.
    We recently setup some wireless, and I'm wondering how I can get iphones and ipads connected to the internet without prompting for a username and password. Even if it does prompt and we put in our domain credentials, things don't work.. it's like it heavily restricts access. However if you put DOMAINNAME\ in front of your user name, then it seems to work.
    Without making static IP reservations and attaching those ip's to no authentication in IronPort... isn't there a way to assign these devices to a policy via their user agent string? Problem is finding that string amongst different versions of iphones and ipads.
    I visited www.ipchicken.com on my iphone and it said Browser: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us)
    AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5
    What part of this do I copy into the user agents field for my no autnentication identity that I'm trying to alter? I tried putting AppleWebKit in, but it still blocks almost everything.
    Right now in this Allowed User Agents identiy i have Windows Update checked, as well as these:
    (MSOffice\x2014)
    Microsoft NCSI
    SSLSoapClient
    AppleWebKit (does not seem to work)
    Thanks for the help!

    I think I figured it out.  Followed this closely:
    https://ironport.custhelp.com/cgi-bin/ironport.cfg/php/enduser/std_adp.php?p_faqid=1426&p_sid=ODIeCGuk&p_lva=1713&p_li=cF91c2VyaWQ9MXJvblAwcnQmcF9wYXNzd2Q9Zm8wQmE1
    Also do you guys know if the custom user agent field can accept wildcards?  Problem is, every version of iOS for iPhone 1, 3G, 3GS, 4, and iPad 1 & 2, or ipod touch (various generations) all have variations in their user strings.  If I could just do a blanket statement for like *iphone* , *ipad*, etc.... that would be easier.
    So are there any wildcards or txt masks that can be put in and interpreted in the custom user agents field?

  • Getting User-Agent through J2ME Client

    Hi, i think most of the developers here might have come across this problem.
    I have a servlet that will get the client's User-Agent headers value when the client access it. When i access the servlet through a phone browser, the header will give me the phone's user agent. But when i access the same servlet through my J2ME client, the header will return a value of 'UNTRUSTED/1.0' string which doesn't contain any user agent info.
    I understand that in JSR implementation the 'UNTRUSTED' string will be appended to the User Agent header, but the original user agent value is not there. Does anyone knows what is the reason behind this?
    Thanx.
    FooShyn

    first:
    - do not multipost the same message
    second:
    - did you put headers on your connection in your application?
    - and the only useragent that you can get is the useragent defined in the app...
    for example:
    try {
          c = (HttpConnection)Connector.open(url);
          c.setRequestMethod(HttpConnection.GET);
          c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
          c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
          c.setRequestProperty("Content-Language",      "en-CA");
          os = c.openOutputStream();
    ...taken from http://developers.sun.com/techtopics/mobility/midp/articles/network/ThirdExample.java

  • Safari 5.0 changes user agent to become mobile device agent on G5 10.5.8

    Safari 5.0 changes the default user agent on my two G5 Dual running on 10.5.8 deeply in the system , affecting ALL browsers in such a way that I can't access my CMS and my organization's website properly anymore. Each and every time it loads as 'default' user agent, but the 'default' user agent is now set to be some kind of mobile device.
    I can check this since my organization has a script which detects which device you are accessing the site with and changes the layout accordingly. By setting the user agent to 'Safari 5.0' in Safari the page loads OK.
    Worse is the fact that CMS works only with Firefox, and it's 'default' user agent is now also some kind of mobile device on my 2 different G5 Duals. This means that I can't access the CMS properly without manually go in and change the url. Doing a preview of a page in the CMS renders an error which can only be simulated by setting the user agent to 'default', both in Safari[5.0] and FF [3.6.3].
    What happened here Apple?
    see thread here: http://discussions.apple.com/message.jspa?messageID=11709335#11709335
    Message was edited by: jarigo_

    Hi and thanks.
    Perhaps I'm not clear enough.
    On my 2 PowerMac's, PPC, 2x2 Ghz, 10.5.8 and all latest patches and security updates using
    Safari 5.0 and Firefox 3.6.3 an Opera there ARE the problems I have been trying to explain.
    On the 2 PowerMac's, PPC, 2x2 Ghz, 10.5.8, ALL browsers pointing to:
    http://unfccc.int
    jumps to:
    http://unfccc.int/home/5198.php , displaying the page as if it was an iPhone or a BlackBerry.
    On my 2 MacBook Pro's, Intel, 10.6.4 and all latest patches and security updates using
    Safari 5.0 and Firefox 3.6.3 there are NO problems.
    On the 2 MacBook Pro's, Intel, 10.6.4, ALL browsers pointing to:
    http://unfccc.int
    jumps to:
    http://unfccc.int/2860.php , which is correct and displays the page correctly
    On my iMac, Intel, 10.5.8 and all latest patches and security updates using
    Safari 5.0 and Firefox 3.6.3 there are NO problems.
    On the iMac, Intel, 10.5.8, ALL browsers pointing to:
    http://unfccc.int
    jumps to:
    http://unfccc.int/2860.php , which is correct and displays the page correctly
    There has been no changes to the CMS. CMS recognize the browsers correctly on all above, EXCEPT the from the 2 PowerMac's, PPC, 2x2 Ghz, 10.5.8.
    ------------

Maybe you are looking for

  • Integrated ITS on SRM:Login Page Problem

    Hello All,    I am working on SRM 4.0 with Internal ITS.I have done all the required settings for Internal ITS.I am able to get the login page but when I enter the user Id and password of my SRM system,It shows the erroe that "Incorrect SSO configura

  • I received a used iphone in a replacement and I was told it was brand new, Now more issues.

    So I bought a iPhone 5s back in October 2013, I had to have it replaced back in June 2014, here it is less then a year with the replacement and I had been having trouble with it ever since receiving it, it would work perfect for them.  The issue I ha

  • Taxes, freight etc. values to be added to stock values at the GR

    We are procuring the material from vendor. Our requirement is the taxes, freight, duties which we pay at the time of procurement should be added to stock values at the time of GR. Also we wish to pay the freight or duties to separate vendor at the ti

  • Allow page breaks and text overflow indicator

    I have set up a sub form to allow page breaks within content which works but then the content that continues on the next page has the text overflow indicator showing and the text field does not expand which is what I want it to do. What do I need to

  • CS6, Ikegami MXF NOT Supported In Prelude & AME With Plug-In Installed?

    Hi all, The curse of the Ikegami MXF strikes again!  Just installed CS6 including all of the latest Adobe updates which are so far so good.  I love a lot of the new features though I haven't  had much of a chance to get to any nitty gritty editing at