Getting mobile number while executing a HTTP Conenction from mobile in J2ME application

Posted on 2007-11-22
Last Modified: 2013-11-24
I am executing a HTTP connection from a mobile in a J2ME application.
I my JSP/Servlet I want to get the mobile or msisdn number
Question by:sangameshrh
  • 3
  • 2

Assisted Solution

qasitouch earned 250 total points
ID: 20334109
there are two things related to MSISDN number.

it is dependant on service provider weather thay allow this or not.

here is the list of populat headers you can use to get the MSISDN number using http conection.


you will get the MSISDN number if the service provider allows this. otherwise you will not get the MSISDN number.

note: normaly service providers don't allow this.

and this information was provided to me by service providers during some official meetings.

Kind Regards,
LVL 12

Accepted Solution

keyurkarnik earned 250 total points
ID: 20481406
Your best bet would be to print out all the headers as well as POST parameters that you get on your servlet.
Then you can choose the one you require and proceed.

Usually the service providers have specific fields, so printing out the details will work best for you.

Expert Comment

ID: 20913089
Its right that it can only be authorized by service provider, but you cann't get that using above headers because every service provider uses self defined headers.

currently I get the chance of working with a service provider, and come to know this. In short its imposible to get it.

LVL 12

Expert Comment

ID: 20913101
it is not impossible... just may not work for some service providers as they might not add the necessary headers...
generally 'most' provides do add the necessary headers...
LVL 12

Expert Comment

ID: 20913104
in india, you can get the headers from airtel, idea, and vodafone. bpl does not add the headers.

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity   readLine()  //returns the entire file ? 4 73
ForLoop Example 3 48
Unhandled exception type Exception 18 28
How do I remove an object from a 3 23
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question