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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:07:45+00:00 2026-06-08T06:07:45+00:00

I have the need to download a file that is hidden behind an HTTPS

  • 0

I have the need to download a file that is hidden behind an HTTPS connection.

I am new to the downloading of files that are sitting behind a secure website, I have tried using credentials to fix this problem but to no avail.

From what I have read, you need to create and use a certificate to complete this, but I have found no examples. Any help is appreciated.

This is what I have for now:

        WebClient dove = new WebClient();
        CredentialCache mycache = new CredentialCache();
        dove.Credentials = new NetworkCredential("user", "pass"); ;
        dove.DownloadProgressChanged += new DownloadProgressChangedEventHandler(dove_DownloadProgressChanged);
        dove.DownloadFileCompleted += new AsyncCompletedEventHandler(dove_DownloadFileCompleted);
        dove.DownloadFileAsync(new Uri("http://secure.website.com/File/Default.aspx"), "file.xls");

Could someone provide me with an example on how to complete this, thank you.

  • 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-08T06:07:47+00:00Added an answer on June 8, 2026 at 6:07 am

    .net support https certificate transparently and u do not need to provide it explicitly. Your code looks good and it should work as long as your website does not need forms authentication. From your code it looks authentication might be basic authentication. However if form authentication is required which normally does for websites then you first need to write a code which authenticate and recieve authenticated cookie from the server.
    How to do it? Better look at this SO question
    HttpClient and forms authentication in C#

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

Sidebar

Related Questions

I need to create a WCF Service that will have a download file function.
I have a need to rename a file after download using php cURL. Here's
I need to download images from a website, and I have the login name
I need to daily run a script that will download a file from a
We have need for creative htaccess file: when user enters file that exists -
I have an application that creates an audio file. I need to provide a
I have this delphi code that basically download a file (using Delphi 2010 +
I need to download a file with french file name for example mé.txt..I have
I am visiting a website regularly and need to download a file. When I
I am trying to download some files. I have written a php script that

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.