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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:44:56+00:00 2026-05-13T13:44:56+00:00

I need to download a bunch of HTML pages programatically, but they are behind

  • 0

I need to download a bunch of HTML pages programatically, but they are behind a login. SO what I need… I think… is to do the following.

  1. Use an HTTP POST to upload some form data including the username/password.
  2. Capture the session somehow. Cookies?
  3. Send a series of HTTP GETs to download the pages I need.

#3 is easy, I do it all the time. I don’t have a clue how to do #1 and 2.

P.S. I will also glady accept “Hey dummy, just use program blah to crawl the site.”

  • 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-13T13:44:56+00:00Added an answer on May 13, 2026 at 1:44 pm

    You need to use a CookieContainer. You can set this on a HttpWebRequest it will collect any cookies received in the response. Then if you set the same CookieContainer instance on subsequent requests, it will post those cookies back to the server.

    You can also use WebClient which is much simpler than HttpWebRequest but in order to set a CookieContainer you’ll need to derive from WebClient and override the protected GetWebRequest method.

    As for posting data such as form fields, I suggest doing it in a browser while running Fiddler and seeing what the browser is posting. Then you’ll know what to include in your POST data.

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

Sidebar

Related Questions

I need to download an XML file, using HTTP protocol, to use it locally
I need to download several files via http in Python. The most obvious way
I need to download a large file (2 GB) over HTTP in a C# console
I need to download images from a website, and I have the login name
I need to download and install xcode . But i need to know the
Basically what's happening is that I need to download a whole bunch of files
I'm trying to use WebClient to download a bunch of files asynchronously. From my
I would like to use the WatchService API as mentioned in this link: http://download.oracle.com/javase/tutorial/essential/io/notification.html
In my app I need to download a bunch of files. My original plan
I need to download jasper reports professional trail version, can anyone help?

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.