CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Change response code from 404 to 200

 



superman183
Deleted

May 2, 2000, 10:39 PM

Post #1 of 3 (873 views)
Change response code from 404 to 200 Can't Post

Hi,

I realise that this may not be the "absolutely most correct" forum to ask, but if someone has any ideas, or if anyone can point me in the right direction then would be grateful.

On a couple of freebie servers I notice that when a page doesn't exist (if being spidered for example) then the host doesn't actually return an error 404, but does still produce a page, which effectively has the URL of the page requested. i.e. it seems to be able to throw away the 404 response before coughing up the output. I don't mean a re-direct, or similar, but actually changing the 404 response into (what I guess would be) a 200 response. I know that most servers don't do that, but I'm not even sure how it can be done unless it's some sort of Apache mod - any good info appreciated.

Regards,
superman183


Jasmine
Administrator

May 3, 2000, 11:17 AM

Post #2 of 3 (873 views)
Re: Change response code from 404 to 200 [In reply to] Can't Post

Try:

print "Status: 200 OK\r\nLocation: $urltodisplay\r\n\r\n";

Good luck!


turkscripts
Deleted

May 7, 2000, 6:56 PM

Post #3 of 3 (873 views)
Re: Change response code from 404 to 200 [In reply to] Can't Post

Hello,
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>
The host doesn't actually return an error 404, but does still produce a page, which effectively has the URL of the page requested
<HR></BLOCKQUOTE>

Yes, this happens in the web server level...

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives