Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6047317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:20:16+00:00 2026-05-23T07:20:16+00:00

I need to find operator name from phone no. using this website in my

  • 0

I need to find operator name from phone no. using this website in my android application.
Requesting and parsing HTML in the application works fine.

When I query request string from the app:

address: .https://nummertjanster.pts.se/net/en/Nummerkapacitet/Enskiltnummer?&_rp/pts.SearchNumber_ndc=70&_rp/pts.SearchNumber_operator=Tele2+Sverige+AB&_rp/pts.SearchNumber_telnumber=4264128

I need to specify ‘operator name’ ..which is wierd I guess.

The problem is no matter which number (ndc-telnumber) I enter if I specify a operator name in the request string the resulting webpage shows that operator name.

Here are some numbers to test:
073-3355433 = Telenor Sverige AB
073-6107353 = Tele 2 Sverige AB
070-3999266 = TeliaSonera Sverige AB
073-2404070 = Glocalnet AB

How can I find the proper operator name for a specific number?

Thanks for your any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:20:17+00:00Added an answer on May 23, 2026 at 7:20 am

    There are a couple of issues with the site that prevent things from working:

    1. It needs a cookie for the POST to work.
    2. The operator name is actually not returned as part of the page, it is returned as part of a location redirect (302).

    This chunk of code does what you want (I was dodging work, so I actually tidied it up for you): it hits the main page, fetches/extracts the cookie returned, posts the area code and number to the website and then intercepts the Location header and pulls out the operator name. Note that the area code is not always 3-digits (so for example for 073-3355433 you would do String operatorName = findOperator("73","3355433");.

    String findOperator(String ndc, String number)
        {           
            String parameters = "action=search&ndc="+ndc+"&number="+number+"&search=S%F6k";
            HttpURLConnection httpUrlConnection = null;
            OutputStream outputStream = null;
            InputStream inputStream = null;
            int code = 0;
            String response = null;
            try {
                java.net.URI u = new java.net.URI("https://nummertjanster.pts.se/net/sv/Nummerkapacitet/Enskiltnummer");
                httpUrlConnection = (HttpURLConnection) u.toURL().openConnection();
                httpUrlConnection.setConnectTimeout(7500);
                httpUrlConnection.setReadTimeout(7500);
                httpUrlConnection.setRequestMethod("GET");
                httpUrlConnection.connect();
                String cookie = httpUrlConnection.getHeaderField("Set-Cookie");
    
                u = new java.net.URI("https://nummertjanster.pts.se/actionrequest/sv/Nummerkapacitet/Enskiltnummer?__ac_/pts.SearchNumber");
                httpUrlConnection = (HttpURLConnection) u.toURL().openConnection();
                httpUrlConnection.setConnectTimeout(7500);
                httpUrlConnection.setReadTimeout(7500);
                httpUrlConnection.setRequestProperty("Cookie", cookie);
                httpUrlConnection.setRequestMethod("POST");
                httpUrlConnection.setDoOutput(true);
                httpUrlConnection.connect();
                outputStream = httpUrlConnection.getOutputStream();
                outputStream.write(parameters.getBytes("UTF-8"));
    
                httpUrlConnection.setInstanceFollowRedirects(false);
                try {
                    inputStream = httpUrlConnection.getInputStream();
                } catch (IOException e) {
                    //andrologger.warn("An error occurred while POSTing to " + url, e);
                }
    
                code = httpUrlConnection.getResponseCode();
                response = httpUrlConnection.getHeaderField("Location");
                if(response != null){
                    response = response.split("&")[2].split("=")[1];
                }
            }catch(Exception e1){
                android.util.Log.v("Configuration","Exception: "+e1.getMessage(), e1);
            } finally {
                closeQuietly(outputStream);
                closeQuietly(httpUrlConnection);
            }
            return response;
        }
    

    Tested it on my phone and it works fine: let me know how it works for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to find/create an application that will create employee web usage reports from
I need to find the age of a file based on its name. Alle
I could not find an XNOR operator to provide this truth table: a b
I need to find out how to format numbers as strings. My code is
I need to find a bottleneck and need to accurately as possible measure time.
I need to find the PID of the current running process on a Linux
I need to find occurrences of (+) in my sql scripts, (i.e., Oracle outer
I need to find a way to crawl one of our company's web applications
I need to find out the time a function takes for computing the performance
I need to find occurrences of ~ 25 000 words within a text. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.