When I use the line HTTP::respond 404 within the HTTP_REQUEST event, the user receives a blank page instead of a 404. Does anyone have an idea on this? I am running 10.2.1 HF2
when HTTP_REQUEST {
HTTP::respond 404
}
When I use the line HTTP::respond 404 within the HTTP_REQUEST event, the user receives a blank page instead of a 404. Does anyone have an idea on this? I am running 10.2.1 HF2
when HTTP_REQUEST {
HTTP::respond 404
}
HTTP::respond doesn’t send any particular content unless you tell it to do so.
Try:
when HTTP_REQUEST {
HTTP::respond 404 content "404 File Not Found" Mime-Type "text/html"
}
You can of course alter the content that it sends within the quotes.
I see, thanks!