Forum Moderators: open

Message Too Old, No Replies

opera won't process asp response.redirect function

need help

         

ojosparausted

7:21 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



I have a drop down menu on my site that I'm using for navigation. Basically I take the form selection and use a response.redirect to take the user to a new page. It works perfectly in recent versions of IE, Mozilla, and Netscape. Opera 7.23 won't processs the script correctly: I get an OBJECT MOVED error everytime. I have tried using a response.buffer=true statement, response.clear, response.end in different combinations but nothing works. I even tried server.redirect(or something to this effect that I found on the MS site).
My code is as follows:
<%
dim GoToURL
If Request.ServerVariables("CONTENT_LENGTH") > 0 then
GoToURL = Request.Form("filename")
Response.Redirect(GoToURL)
End If
%>
I've tried simpler code but I get the same results with Opera. I tested with response.write and I get the correct variable but Opera still drops the ball. I was also wondering if perhaps I have my Opera settings restricted , but I don't think that's the case.
Again, works everywhere but Opera. Any ideas?
FB

txbakers

9:56 pm on Feb 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's probably a JavaScript issue not an ASP issue.

Opera doesn't process ASP - the Windows server does, and sends HTML.

plumsauce

4:38 am on Feb 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




I *believe* that it is not a javascript error
because the post is being received at the server
for further processing of the redirect, which
might be a 301 or 302.

More likely, it is that opera is being strict
about a redirect on a POST verb since a form
is in use.

In this situation, the RFC says that certain
restrictions/precautions should be implemented
when a redirect is returned as a result of a
POST operation. Note that this is unique to
the POST verb and not GET.

Without looking at RFC 2616 I don't have the
exact answer with me, but that is the gist
of it.

+++

ojosparausted

5:01 am on Feb 20, 2004 (gmt 0)

10+ Year Member



I've deleted all javascript and I get the same effect. I've also reinstalled Opera. The RFC 2616 is beyond my comprehension. Any idea what a fix might be?

ojosparausted

5:20 am on Feb 20, 2004 (gmt 0)

10+ Year Member



Okay problem solved. Being the genius that I'm not, I had "automatic redirect" disabled in Opera. Sorry for wasting these bytes....

Xoc

7:54 am on Feb 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad you figured it out. Much of RFC 2616 might be incomprehensible to some, but the description of the various error numbers in section 10 is useful to virtually all webmasters. You can find that RFC here: [ietf.org...]