Mohammed Hamama wrote on 28 okt 2006 in
microsoft.public.inetserver.asp.general:
The URL can stand for any URL. For example you can have it
http://www.cnn.com and it will still return the 404 page instead.
[please always quote relevant part on usenet, this is not email]
Mohammed, I seem te remember you were asking about
:
<%
Response.redirect "http://www.cnn.com"
%>
Re: ASP returning 404
It seems to me ASP does not "return" anything in this sense,
it is the browser being redirected to some web page, isn't it?
ASP just sends a header entry [and a small piece of HTML for noncompliant
browsers] in a 302-Object-moved page stream sent to the requesting client
browser, advising the browser to redirect to an outside URL.
Did you inspect the header?
Use <http://www.rexswain.com/httpview.html[or many others]
========================================
It should show something like this:
Receiving Header:
HTTP/1.1·302·Object·moved(CR)(LF)
Connection:·close(CR)(LF)
Date:·Sat,·28·Oct·2006·07:37:00·GMT(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
MicrosoftOfficeWebServer:·5.0_Pub(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
Location:·
http://www.cnn.com(CR)(LF)
Content-Length:·139(CR)(LF)
Content-Type:·text/html(CR)(LF)
Expires:·Sat,·28·Oct·2006·05:57:00·GMT(CR)(LF)
Set-Cookie:·ASPSESSIONIDXXXXXXXXX=CFINMBIBKIJXXXXXX;·p ath=/(CR)(LF)
Cache-control:·private(CR)(LF)
(CR)(LF)
End of Header (Length = 377)
• Elapsed time so far: 1 seconds
• Waiting for additional response until connection closes...
Total bytes received = 516
Elapsed time so far: 1 seconds
Content (Length = 139):
<head><title>Object·moved</title></head>(LF)
<body><h1>Object·Moved</h1>This·object·may·be·found·<a·
HREF="http://www.cnn.com">here</a>.</body>(LF)
Done
==========================================
So what is different in your case?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)