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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:08:58+00:00 2026-06-05T08:08:58+00:00

I request a URL as https://user:pass@domain.com/etcetc In Controller, I use Request.Url.UserInfo get nothing, empty

  • 0

I request a URL as https://user:pass@domain.com/etcetc

In Controller, I use Request.Url.UserInfo get nothing, empty string, why?
Or, how can I get user:pass at controller

  • 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-05T08:09:00+00:00Added an answer on June 5, 2026 at 8:09 am

    Here are a couple of things to check.

    1) What does the raw url look like?
    2) Validate that the UserInfo property works (which Microsoft says it does, and my tests show it does as well).

        Response.Write("Raw: " + Request.RawUrl);
        Response.Write("<br />");
    
        Uri uriAddress = new Uri("http://user:password@www.contoso.com/index.htm ");
        Response.Write("Test URL Results: "+uriAddress.UserInfo);
    

    Based on my own tests I would guess that the user:password portion is being stripped out before it gets to your page. In IE, as others have stated, I was unable to get it to take the values. In Chrome it also seemed to strip them off automatically (after I had typed in the address and hit enter the values disappeared from the address bar immediately).

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

Sidebar

Related Questions

I need to get connect with https url, send my request schema and I
To use flickr as an example, a request URL looks something like this: 'http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key='
Here's my URL: https://maps.googleapis.com/maps/api/place/search/xml?location;=41.983333,-87.766666&radius;=5000&sensor;=false&type;=doctor&name;=DPM&key;= mykey I get a request denied response. I have activated
I need to make a cURL request to a https URL, but I have
Im trying to resend a request using HTTPS when a particular URL is hit.
I cannot request url http://www.besondere-raumdüfte.de with urllib2.urlopen(). I tried to encode string using urllib.urlencode
In my application , a HTTP GET request URL to the application with script
I've got a URL and I'm using HTTP GET to pass a query along
Can anyone explain how http://user:pass@host.com authentication works? Does the browser send the Authorization header
I am unable to get a url request to do both ssl urls and

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.