One problem ... some browsers override a custom 404 page. The fix (which is in report.c not http.c - wrong 'null' case, btw) won't appear if your browser does not already display custom 404 pages.
Under IE, in the Tools | Internet Options dialog, on the 'Advanced' tab, UNCHECK the "Show friendly HTTP error messages" option. S'be'it -- I'm not going to return a 200 (successful) on what is clearly NOT successful. 404 is the right code! I'll be committing it in a few minutes. -----Burton > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Burton M. Strauss III > Sent: Friday, February 27, 2004 7:19 AM > To: [EMAIL PROTECTED] > Subject: RE: [Ntop] bug in "Last MAC Address/Router" field > > > That can happen if the host has been purged. > > A 404 return code is technically correct (there's no alternative for > 'temporarily unavailable'). > > Agreed it would be nicer to have a more friendly message. It might be > better even to suppress the link if it's not available, but that's > problematic - what is/isn't available at the time the 1st page is > generated > might not be correct seconds on minutes later when you go to click on it. > > The core 'sorry charlie' message at http.c 2398 can be changed. It would > take more than a small bit of work to differentiate between a request that > LOOKS like a host (MAC or IP or name) and just garbage... so returning an > extra explainitory line in the message saying "Unable to find a host named > gargagerequestyoudweeb" is probably good enough, > > Note that if your browser is retarded in handling 404s, you'll > get what you > get. And as that's a general ntop routine, there's not much that can be > done to change it all that much. Check the cvs in a little while. > > -----Burton > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike > > Hunter > > Sent: Thursday, February 26, 2004 7:12 PM > > To: [EMAIL PROTECTED] > > Subject: [Ntop] bug in "Last MAC Address/Router" field > > > > > > Upon clicking on a host, under the "last mac address/router" > tab, it gives > > a link that results in this: > > > > The server cannot find the requested page (page expired or ntop > > configuration ?). > > > > Received request: > > > > "GET /00_04_75_98_FB_C0.html HTTP/1.1" > > _______________________________________________ > > Ntop mailing list > > [EMAIL PROTECTED] > > http://listgateway.unipi.it/mailman/listinfo/ntop > > > > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://listgateway.unipi.it/mailman/listinfo/ntop > _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
