Let's say I'm sending some HTTP status code in PHP, do I really need to do
header('HTTP/1.1 301 Moved Permanently');
or enough for
header('HTTP/1.1 301 FooBar');
I did this in a quick and dirty reverse proxy, where I could get the code, not the message, from the CURL response and sent it back with the FooBar message. This seems to work fine.
Bart van heukelom
source share