Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3059
  • Last Modified:

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

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
0
sangameshrh
Asked:
sangameshrh
  • 3
  • 2
2 Solutions
 
qasitouchCommented:
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.

request.getHeader("http_x_up_calling_line_id");
request.getHeader("x-up-calling-line-id");
request.getHeader("HTTP_X_UP_SUBNO");
request.getHeader("MSISDNHeader");
request.getHeader("X-MSISDN");
request.getHeader("x-wsb-msisdn-content-filter");
request.getHeader("x-msisdn");

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,
qasitouch.
0
 
keyurkarnikCommented:
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.
0
 
qasitouchCommented:
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.

0
 
keyurkarnikCommented:
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...
0
 
keyurkarnikCommented:
in india, you can get the headers from airtel, idea, and vodafone. bpl does not add the headers.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now