Redirection problem

Results 1 to 2 of 2

Thread: Redirection problem

  1. #1
    Ramky Guest

    Default Redirection problem

    I am having a redirection problem. <BR>The redirection works in both internet explorer as well as netscape.<BR>But when I use "save link as/save target as" on the right click of the link it does not download the correct file in netscape browser. Instead it downloads the redirecting file in netscape.<BR>It works correctly in the IE browser. Instead of downloading the .html file it downloads the countredirect.asp file<BR><BR><BR>first file linking.asp<BR>---------------<BR><BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;<BR>&# 060;META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"&#062;<BR>&#060;TITLE&#062;&#060;/TITLE&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR><BR>&#060;P&#062 ;&#060;% xURL = "http://travel.state.gov/visa_bulletin.html"<BR>URL = "/Sections/sReports/countRedirect.asp?f_URL=" & xURL<BR>Response.Write("&#060;td&#062;")<BR>Respon se.Write("&#060;a href = &#039" & URL & "&#039&#062;")<BR>Response.Write("link&#060;/a&#062;")<BR>Response.Write("&#060;/td&#062;")<BR>%&#062;<BR>&#060;/p&#062;<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR>-----------------end of file<BR>second file countredirect.asp<BR><BR><BR>&#060;html&#062;&#060 ;head&#062;&#060;title&#062;&#060;/title&#062;&#060;/head&#062;&#060;body&#062;<BR><BR>&#039 QueryString Variables Used<BR>URL = request("f_URL")<BR>response.redirect(URL)<BR>%&#0 62;<BR><BR>&#060;/body&#062;&#060;/html&#062;<BR>--------------end of second file

  2. #2
    Join Date
    Dec 1969
    Posts
    274

    Default RE: Redirection problem

    I am surprised that it works at all given that you write html content and then try to redirect. This usually does not work (it should spit an error that the headers have already been written). <BR><BR>In any case, when you saved the file in netscape, did you try opening it with notepad? I often have the problem in IE even where I go to save a file and it assumes I want to have it named .asp, so I just change it to htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •