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

  • SEARCH
  • Home
  • 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 8950867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:32:05+00:00 2026-06-15T13:32:05+00:00

I am trying to login to this page: https://eas.admin.uillinois.edu/eas/servlet/EasLogin?redirect=https://webprod.admin.uillinois.edu/ssa/servlet/SelfServiceLogin?appName=edu.uillinois.aits.SelfServiceLogin&dad=BANPROD1 Using HttpPost on Android. I

  • 0

I am trying to login to this page: https://eas.admin.uillinois.edu/eas/servlet/EasLogin?redirect=https://webprod.admin.uillinois.edu/ssa/servlet/SelfServiceLogin?appName=edu.uillinois.aits.SelfServiceLogin&dad=BANPROD1

Using HttpPost on Android. I looked online and tried httpclient and executed httppost. However the response is the same URL. Here is my code, what do I need? Thanks.

     @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_check_balance);
    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
    StrictMode.setThreadPolicy(policy); 

    String username = getIntent().getExtras().getString("username");
    String password = getIntent().getExtras().getString("password");

    //Building post parameters, key and value pair
    List<NameValuePair> accountInfo = new ArrayList<NameValuePair>(2);
    accountInfo.add(new BasicNameValuePair("inputEnterpriseId", username));
    accountInfo.add(new BasicNameValuePair("password", password));


    //Creating HTTP client
    HttpClient httpClient = new DefaultHttpClient();

    //Creating HTTP Post
    HttpPost httpPost = new HttpPost(LOGIN_URL);

    /* Not needed?
    BasicHttpParams params = new BasicHttpParams();
    params.setParameter("ENT_ID", username);
    params.setParameter("PASSWORD", password);
    httpPost.setParams(params);
    */

    //Url Encoding the POST parameters   
    try {
        httpPost.setEntity(new UrlEncodedFormEntity(accountInfo));
    }
    catch (UnsupportedEncodingException e) {
        // writing error to Log
        e.printStackTrace();
        startActivity(new Intent(this, InputAccountActivity.class));
    }

    HttpResponse response = null;
    InputStreamReader iSR = null;
    String source = null;


 // Making HTTP Request
    try {
        response = httpClient.execute(httpPost);
        source = inputStreamToString(response.getEntity().getContent()).toString(); //gets website source

        // writing response to log
        Log.d("Http Response:", response.toString());
        Log.d("hi", source);
        /*
        iSR = new InputStreamReader(response.getEntity().getContent());

        HttpEntity resEntity = response.getEntity();
        if (resEntity != null) {    
            Log.d("RESPONSE",resEntity.toString());
        }

        BufferedReader br = new BufferedReader(iSR);   
        source = "";

        while((source = br.readLine()) != null)
        {
            source += br.readLine();
            Log.d(TAG,source.trim());
        }
        */

    } catch (ClientProtocolException e) {
        // writing exception to log
        e.printStackTrace();

    } catch (IOException e) {
        // writing exception to log
        e.printStackTrace();
        startActivity(new Intent(this, InputAccountActivity.class));
    }    
}
  • 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-06-15T13:32:07+00:00Added an answer on June 15, 2026 at 1:32 pm

    I am just guessing, try changing

    accountInfo.add(new BasicNameValuePair("inputEnterpriseID", username));
    

    to below given code.

    accountInfo.add(new BasicNameValuePair("inputEnterpriseId", username));
    

    I think your Id is incorrect.Hope this will help

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

Sidebar

Related Questions

I am trying to redirect a login page to an external security service. This
I am trying to login to this website https://www.virginmobile.com.au programatically (on the right there
I've found this login script and I'm trying to implement it into my website
I am trying to Login or SugarCrm using REST. I have this code,, //Login
I am trying to login using the library Mechanize. This the output i get
First, check this message which I was trying to do: Login To log on
I am trying to build openid login system for my website. To do this
I'm a newbie to sql and am trying to follow this example here: http://net.tutsplus.com/tutorials/php/a-better-login-system/
So I'm trying to embed the google analytics login page onto a page. Works
I am trying to open this uri https://some-host/a/meta? (this url is passed to proxi.jsp

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.