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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:18:10+00:00 2026-06-17T07:18:10+00:00

As part of a small project i’m doing that will never actually go into

  • 0

As part of a small project i’m doing that will never actually go into ‘production’ I need to be able to log into a very secure website and retrieve html.

I’ve been looking into doing this using the apache commons HTTPCLient. However i just wanted to make sure it was even possible as this website is very secure and likely has sso methods to sign in?
If it is possible, what is the best way to do this? I need to be able to navigate through about three pages once i have logged in so will need to store the cookie or session somehow.

Thanks very much!

  • 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-17T07:18:11+00:00Added an answer on June 17, 2026 at 7:18 am

    yes, its possible to do this using apache http components, but for interacting with complex websites nothing (that i know) beats HtmlUnit. to work with httpcomponents you’d need to “script” the whole sequence of http requests, and you’ll have a problem if anything in the middle relies on dynamic content/javascript.

    HtmlUnit, on the other hand, is an almost complete “bowser in a box” and you can script the interaction at a much higher level – click this, fill those values, submit etc.

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

Sidebar

Related Questions

As part of a small project I'm working on, I need to be able
I have a small project where I need just part of boost library, boost::regex
I have a small project that is using only the boost::interprocess part from the
As part of a small project I'm doing to learn Qt, I'm trying to
I'm to use C++ for a very small part of my project. I must
I'm working on a small design project, part of which involved writing out text
I'm part of a small team trying to start coding on a project. I've
I have a requirement to change a very small part of the WPF ComboBox's
I am developing a small excel plugin. As part of it I need to
I'm doing a small project in C after quite a long time away from

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.