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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP PROBLEM

Status
Not open for further replies.

2D

IS-IT--Management
Aug 15, 2002
32
US
I'm attempting to move and asp page to a new server. The old server is a NT4 server running IIS 4, the new server is a Win2K server running IIS 5. The asp page contains only two important pieces of code, See Below.


<%LOGIN_IP=request.servervariables(&quot;remote_addr&quot;)%>

<%
' RESPONSE.REDIRECT &quot; + LOGIN_IP + &quot;>&quot;

%>


This code runs just fine on the NT4 server, but not on the Win2K. Any ideas on what needs to be done to get this to run on the Win2k server?

Thanks
 
are those +'s suppose to be &'s in the url for redirection?
or are you using server side javascript?
_________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
That is the Exact code. I believe a JavaScript is being used on the destination page.

 
I don't know, I don't really understand asp code, I didn't write this code.
 
when u say the asp page only contains those &quot;important&quot; bits of code, if you dont understand what's going on how can u say what's important?

is there any other asp on that page? ===============
Security Forums
 
The working file on the IIS 4 server contains HTML code for a webpage between the two asp pieces I posted. If the asp code is executed you never see that HTML on a browser; you are just redirected to the destination. However if the asp code is not executed you see the HTML between the asp.

Also there is No other asp code inside the file, if there was I would of posted it.
 
sorry didnt mean to sound .. b4

you need to be checking stuff incase it dont work e.g.:

<%LOGIN_IP=request.servervariables(&quot;remote_addr&quot;)

response.write (&quot;login ip = &quot; & login_ip)

%>
<%

newurl = &quot; & LOGIN_IP & &quot;>&quot; 

reponse.write (newurl)
RESPONSE.REDIRECT (newurl)
%>

take out the apostrophy. i think that makes it into a comment. or put it back to make sure the login ip and newurl is what you are expecting it to be without the redirect happening.

===============
Security Forums
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top