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 4618430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:15:57+00:00 2026-05-22T02:15:57+00:00

I posted before but now I seem to actually see the problem, just having

  • 0

I posted before but now I seem to actually see the problem, just having trouble fixing it.

I am trying to login to my schools grade website, maybe even make an app for it later, and when I use Chrome to inspect the cookies being created, I get all these,

Cookie:appName=chippewa_falls; tool=""; selection=""; districtID=1; endYear=2011; calendarID=0; permCalendarID=0; JSESSIONID=BE5AEF51EAA72975150FC2D0F77DDE13

But when my program prints all the cookies it received, I only get this

  • [version: 0][name: JSESSIONID][value: BC1BAA33BEB23DC27B7883AC24934A1D][domain: campus.chipfalls.k12.wi.us][path: /campus][expiry: null]

here is my code,

public static void main(String[] args) throws Exception {


    DefaultHttpClient httpclient = new DefaultHttpClient();
    HttpGet httpget = new HttpGet("https://campus.chipfalls.k12.wi.us/campus/portal/chippewa_falls.jsp");
    httpget.addHeader("Referer", "http://cfsd.chipfalls.k12.wi.us//high/");
    HttpResponse response = httpclient.execute(httpget);
    HttpEntity entity = response.getEntity();

    System.out.println("Login form get: " + response.getStatusLine());
    if (entity != null) {
        InputStream input = entity.getContent();
        BufferedReader reader = new BufferedReader(new InputStreamReader(input));
        String ln = "";
        while((ln = reader.readLine()) != null) {
            System.out.println("During Get - " + ln);
        }
    }
    System.out.println("Initial set of cookies:");
    List<Cookie> cookies = httpclient.getCookieStore().getCookies();

    if (cookies.isEmpty()) {
        System.out.println("None");
    } else {
        for (int i = 0; i < cookies.size(); i++) {
            System.out.println("- " + cookies.get(i).toString());
        }
    }

Note that is just for the GET part of it,

Thanks for any help 🙂

Edit: I did forget to mention, it is using HTTPS, but to be honest, I don’t know if that matters with apache client or not.

  • 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-22T02:15:57+00:00Added an answer on May 22, 2026 at 2:15 am

    Those cookies must be getting set AFTER you login, not before. Looking at the output with wget of the URL you have above you see this:

    Resolving campus.chipfalls.k12.wi.us... 205.213.253.11
    Connecting to campus.chipfalls.k12.wi.us|205.213.253.11|:443... connected.
    WARNING: Certificate verification error for campus.chipfalls.k12.wi.us: self signed certificate in certificate chain
    HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Set-Cookie: JSESSIONID=004549BDBCBDFB8289EBF859A4E743B2; Path=/campus; Secure
      Content-Type: text/html;charset=utf-8
      Content-Length: 6352
      Date: Tue, 17 May 2011 06:00:38 GMT
      Connection: keep-alive
    Length: 6,352 (6.2K) [text/html]
    

    which is the exact same thing you see. Until you actually log in you will not see the other cookies.

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

Sidebar

Related Questions

I've actually posted this question before, but it hasn't been answered. Maybe I wasn't
I've been going at this problem for a solid couple hours now and having
(I posted this before anonymously, but then couldn't use the same computer again, so
I posted this question here before but there were no responses. I may have
We want to reprint a payment advice, even before it is posted. The report
Recently Jeff has posted regarding his trouble with database deadlocks related to reading. Multiversion
I have posted a question before, Moving away from VSS , in which I
I kind of posted a similar question a couple of days ago but that
I have posted this on the Google Web Toolkit Discussion Group but hopefully you
I've been hunting around the net now for a few days trying to figure

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.