Page 1 of 1
Bad Request Header
Posted: Mon Oct 16, 2006 3:30 am
by Ree
What is the correct string I should pass to header() to output a 400 page?
Posted: Mon Oct 16, 2006 3:32 am
by itsmani1
the correct page with correct path.
Posted: Mon Oct 16, 2006 3:52 am
by Ree
I thought something like
Code: Select all
header('HTTP/1.1 400 Bad Request');
would work but it doesn't. Do I need to configure something?
Posted: Mon Oct 16, 2006 7:45 am
by feyd
Can you define how it doesn't work?
Posted: Mon Oct 16, 2006 3:32 pm
by Ree
My idea was to display a 404 page to the client (the server should use whatever html page it has for that purpose). The above header does not force this behaviour.
Posted: Mon Oct 16, 2006 3:34 pm
by feyd
You're artificially implementing that behaviour thus you have to build it yourself. The server doesn't pay attention much to what's being written to the output by PHP.