• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet to detect http requests from Verizon phone

 
Victor Ho
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd like to find out if there is a way for a servlet to distinguish between a request coming from a Verizon phone vs. other carriers through HTTP?

I understand that the wap user-agent header field tells about the phone model, is there a way to derive the carrier?

Thanks
Victor
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always write your J2ME APP to send that info as a parameter to the URL that the Servlet can then read.

Mark
 
Victor Ho
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark.

I am basically trying to avoid making the user to input which carrier he is using. Is there a way for an J2ME app to find out this information w/o asking the user?

If so, your suggestion would work.

Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!