04-16-2012 04:09 AM
Another option is to use the TrafficScript http.sendResponse() function to control how the 404 content is sent to the client:
http.sendResponse( "404 Not Found", "text/html", $body, "");
02-17-2012 01:06 AM
Thanks for the response Edwin. I wll give the Java option a go.
02-16-2012 01:04 PM
02-16-2012 04:11 AM
I have the following script to redirect a server 404 responses to a nice 404_error.htm page:
if( http.getResponseCode() != 404 ) break;
http.setResponseCode("404 Not Found");
http.redirect( "/404_error.htm" );
The problem is that the script returns a 302 and then a 200 in http watch. I would like to see at 404 repose code returned before the redirect takes place.
Line two of the rule does not have the desired effect, it seems that I could either do a 404 or a 302. Is there a way of combining the two?
Solved! Go to Solution.
© Copyright 2012 Riverbed Technology. All rights reserved Riverbed.com | Contact Us | Technical Support | Terms & Conditions | Privacy Policy