Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

response.redirect problem in IE

Posted on 2011-02-27
6
917 Views
Last Modified: 2012-05-11
Hi,

I have just this line of code in an asp file:

<%
      response.redirect "https://username:password@192.168.xxx.xxx:7777/set_param?mng.reboot=1"
%>

where of course username, password and IP are properly filled.

It works fine in any browser except IE (I get this page cannot be found).

How can i get this to work in IE
0
Comment
Question by:arip75
  • 3
  • 2
6 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34994482
I think I.E prevents you from passing a username and password in this way using a response.redirect.
A workaround is to use javascript to do it on the clientside rather than server side.
set the window.location to your url.
0
 
LVL 25

Accepted Solution

by:
clockwatcher earned 250 total points
ID: 34994486
Microsoft removed it for security reasons... see the following:

  http://support.microsoft.com/kb/834489


If you have access to the client machines, you can set a registry key to re-enable the functionality:

How to disable the new default behavior for handling user information in HTTP or HTTPS URLs
To disable the new default behavior in Windows Explorer and Internet Explorer, create iexplore.exe and explorer.exe DWORD values in one of the following registry keys and set their value data to 0.

    * For all users of the program, set the value in the following registry key:
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE
    * For the current user of the program only, set the value in the following registry key:
      HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE


Barring that, you're probably going to be out of luck getting working in IE.   Sorry.
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34994513
<script language='javascript'>
var url = 'http://' + userid + ":" & userpassword + '@192.168.xxx.xxx:7777/set_param?mng.reboot=1';

window.location = url;
</script>

0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:arip75
ID: 35003615
I'm afraid javascript doesn't do the trick

I have tried

<script language='javascript'>
window.location = 'https://192.168.xxx.xxx:7777/set_param?mng.reboot=1';
</script>

and it works.

but if I try

<script language='javascript'>
window.location = 'https://username:password@192.168.xxx.xxx:7777/set_param?mng.reboot=1';
</script>

then it doesn't work.

any idea?

Thanks.
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35003629
No i'm afraid that was the last idea,  it seems like the answer is you can't do that unless you're prepared to hack the registry for each client as shown by clockwatcher.
0
 

Author Closing Comment

by:arip75
ID: 35003703
There is no solution, clockwatcher gave me a workaround from the microsoft website which is the closest to what I need.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question