CASE: server is HTTP/1.0 with CGI/1.1 capability. i am writing CGI
that returns a Status of 400 or 500 if there's an error (C lib...).
reading the CGI spec on hoohoo.ncda.uiuc.edu i have decided to
return a simple one line Header with the following:
HTTP/1.0 400 Failure\n
this seems sufficient from the spec.
this Header does not return a 400 code to my browser but instead fails at the
server:
[Tue Jun 13 10:41:14 1995] httpd: malformed header from script
if i include text/plain, like an error message:
HTTP/1.0 400 Failure\n
this is a dummy error message
then i get the dummy error message in my browser and NOT an 400 error code
PROBLEM: how can i code a CGI header with a non-200 code that will be accepted?
moreover, how can i code CGI to return an error code that causes HTTPD to
return a non-200 error code?
have i missed the BIG IDEA?
thanks
//michael
--
:: ob disclaimer: opinions expressed are not those of xerox, corp.