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

[MacPerl] CGI glue: Is SERVER_SOFTWARE hardcoded?



I've been setting up a Mac Webserver and testing some MacPerl CGIs (MacPerl 
5.0.6r1m and 06Feb96 glue) and I noticed something odd. Running a sample 
ACGI which basically just echoes environment variables and form variables 
gave the following outputs:

First, using NetPresenz 4.0.1 as a server:
[from the header]
HTTP/1.0 200 OK
Server: NetPresenz/4.0.1

[from the body]
We got passed these Environment variables:
key=[SERVER_SOFTWARE] value=[MacHTTP/2.0]
key=[GATEWAY_INTERFACE] value=[CGI/1.1]

Then, using MacHTTP 2.2:
[from the header]
HTTP/1.0 200 OK
Server: MacHTTP/2.2

[from the body]
We got passed these Environment variables:
key=[SERVER_SOFTWARE] value=[MacHTTP/2.0]
key=[GATEWAY_INTERFACE] value=[CGI/1.1]

How come both servers claim to be running "MacHTTP/2.0" when neither is?
I've checked both the CGI itself (a modified version of Sandra Silcot's
7Aug95 post) and cgi-lib.pl and neither even mentions MacHTTP, except in
comments. Is the glue doing this or am I missing something? 

-Dave

Big Dave Schmitt        University of Md Baltimore County   (__)   
Math major / CS minor / UCS Client Services                 (oo)------\ 
dschmi1@umbc.edu        http://umbc.edu/%7Edschmi1/          \/      | \
Don't blame UMBC or UCS for the opinions stated above.        ||---w||  *