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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:55:02+00:00 2026-06-04T04:55:02+00:00

As the title says, Does ASP .NET c# HttpWebRequest support HTTPS Authentication via username:password@www.website.com?

  • 0

As the title says,

Does ASP .NET c# HttpWebRequest support HTTPS Authentication via username:password@www.website.com?

Almost everything I find regarding authentication appends the username and password after the website. Will using System.Net.HttpRequest work with username and password before the website?

[EDIT]

Let me explain the scenario, this is for an application that I am developing that makes a HTTP POST to a website. We are already using HTTPS, and the website server has my IP whielisted. At the request of someone from the ‘website’, they want to use the username:password@www.website.com in addition for authentication.

  • 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-04T04:55:04+00:00Added an answer on June 4, 2026 at 4:55 am

    Adding credentials on the url never worked for me. This is how I’m currently doing it:

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl);
    System.Net.CredentialCache credentialCache = new System.Net.CredentialCache();
    credentialCache.Add(
        new System.Uri(apiUrl),
        "Basic",
        new System.Net.NetworkCredential(basicAuthUserName, basicAuthPassword)
    );
    
    request.PreAuthenticate = true;
    request.Credentials = credentialCache;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As the title says, I'm interested to know how you typically structure your ASP.NET
As the title says, does Hive support cursors, or something like them? I have
Title says all - what library(ies) or code or whatever does a digital audio
I have written a code which does the thing as the title says. The
What the title says. Are they the same? I've noticed that the first does
The question says on the title. Does anyone know what the distance represent in
Like the title says, my code basically does this: set proxy, test proxy, do
I have a 2 part question. First, as the title says, does anybody know
Like the title says, we need to set up WCF services between a .NET
I recently installed the ASP.NET MVC 4 Developer Preview (which Microsoft says can be

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.