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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:43:49+00:00 2026-05-16T05:43:49+00:00

I wish to programmatically download a webpage which requires a log in to view.

  • 0

I wish to programmatically download a webpage which requires a log in to view. Is there any sane way of doing this? By looking at HTTP headers and such, I can see the username / password being passed as POST data, but requesting a page with this info attached isn’t good enough. I think cookies are involved too, and it looks like they contain some kind of encrypted authorisation data.

Is there any way of faking this? Language isn’t too important here, but something like Perl that can be run on Linux with relative ease would be nice. Or maybe a command line browser could be scripted?

  • 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-16T05:43:50+00:00Added an answer on May 16, 2026 at 5:43 am

    Yes, you can do this via the curl command-line tool or the CURL library. You need to figure out what’s supposed to be in the cookies, and then pass them with curl‘s -b option or the equivalent CURL API.

    You can also perform HTTP Basic authentication via CURL.

    If the page is really sophisticated, you’ll have to do HTML parsing or even JS interpretation to extract the cookie data beforehand. That’s still doable, but not with CURL alone.

    As a general note, anything a web browser can do can be scripted. Turing-completeness and all that. “Unscriptable” captive portals like BlueSocket sells are a load of bunk; they’re basically just obfuscated web pages. They’ll slow you down but can never, ever stop you – they have to give you the keys in order to work!

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

Sidebar

Related Questions

I am adding a button to a winform programmatically and wish this to be
What I am looking for is a way to programmatically verify a target object
I have a webpage which renders LaTeX formula using javascript. I wish to take
I wish to programatically unsubscribe to an event, which as been wired up. I
I wish to do this using only XAML - How to add an additional
I wish to add the mouseover events to a panel which contains more than
I wish HTML could do something semantically equivalent to this; <dl class=main-list> <definitionitem> <dt>Some
I wish I could figure this out. I need to produce a table with
I have a Drupal Menu which I created through the interface. I wish to
Wish anybody can help me with this error Column 'Sales.No_' is invalid in the

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.