PRB: IE Error When Posting to an ASP That Initiates Redirects

Last reviewed: December 11, 1997
Article ID: Q175318
The information in this article applies to:
  • Microsoft Active Server Pages, versions 1.0, 1.0b
  • Microsoft Internet Explorer versions 3.0, 3.01, 3.02 for Windows NT 4.0
  • Microsoft Internet Explorer versions 3.0, 3.01, 3.02 for Windows 95

SYMPTOMS

The following Internet Explorer error occurs when POSTing a form to an (Active Server Pages (.asp) file that initiates multiple "response.redirect"

   Internet Explorer cannot open the Internet site http://<your
   server>/<your Web>/<your asp file>
   The requested item could not be found."

CAUSE

The conditions that cause this error to occur are as follows:

  1. The requesting page uses a Post to an ASP page.

  2. The ASP page issues a "Response.redirect" ("HTTP302").

  3. The redirected page redirects to another page.

RESOLUTION

The correct solution is to re-design the Web application so that a redirect is not issued when a HTM forms submits a POST.

STATUS

This behavior is by design.

MORE INFORMATION

The following text is from the HTTP 1.0 Spec located on http://www.internic.net/rfc/rfc1945.txt

   9.3 Redirection 3xx

   302 Moved Temporarily
   If the 302 status code is received in response to a request using the
   POST method, the user agent must not automatically redirect the request
   unless it can be confirmed by the user since this might change the
   conditions under which the request was issued.

   NOTE: When automatically redirecting a POST request after receiving a
   302 status code, some existing user agents will erroneously change it
   into a GET request.

Internet Explorer incorrectly handles the situation described above in that it erroneously changes it into a GET request when it should fail or prompt the user to confirm the redirect.

REFERENCES

For the latest Knowledge Base artices and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/vinterdev/

Keywords          : AXSFCompBrowser kberrmsg
Technology        : kbInetDev
Version           : WINDOWS:3.0,3.01,3.02; WINNT:1.0,1.0b
Platform          : WINDOWS winnt
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.