• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

HTTP_USER_AGENT character size

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I'm using Oracles OC4J for a web app. Unfortunately HTTP_USER_AGENT is only storing the first 75 characters which means it is not possible to determine the browser of some users. I'd like to set this to between 150 and 250 chars. Does anyone know of a way to do this?
Many thanks, and apologies if this is the wrong forum for such questions (I'm not sure whether this is an OC4J issue, or something else)
Rowan.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using Java:

Check out the URL Classes under java.net.* you would find setRequestProperty.. which can used to set the UserAgent to a Browser.

Good Luck
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic