[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI glue: Is SERVER_SOFTWARE hardcoded?



>How come both servers claim to be running "MacHTTP/2.0" when neither is?

We did this a couple of weeks ago. The glue generates a "reasonable
default value" (misquoting Matthias here) because WebSTAR does not
identify itself, as of 1.2.4, anyway, to the glue. I'm not sure what
the various versions of MacHTTP do here -- presumably they don't
ID themselves either.

The answer is to output the full header in the CGI, so the glue doesn't
have to insert any questionable data for you...

print "HTTP/1.0 200 OK\n";
print "MIME-Version: 1.0\n";
print "Server: WebSTAR 1.2.4\n";
print "Content-Type: text/html\n\n";


--
matt.