Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Redirect "user:password@domain"

Status
Not open for further replies.

rac2

Programmer
Apr 26, 2001
1,871
US
Linking to sites that require login.

In HTML a link with username and password in the URL looks like this
Code:
<a href=&quot;[URL unfurl="true"]http://user:password@protected.site.net&quot;>[/URL]
This allows me to connect to the protected site without entering a username and password.

But when I try to redirect in an ASP page like this
Code:
Response.Redirect &quot;[URL unfurl="true"]http://user:password@protected.site.net&quot;[/URL]
I am prompted for username and password.

What is the secret?
 
A plausible suggestion but not the answer. Using URLEncode leads to a 404 error.

Thank you anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top