in reply to Force 1.0 response on Apache

If you turn your CGI into one of the no-parsed-header (usually done by naming it with a nph- prefix), then Apache will expect it to return a full set of HTTP headers (protocol and all), which CGI.pm will quite happily generate for you.

    --k.


Replies are listed 'Best First'.
Re: Re: Force 1.0 response on Apache
by shotgunefx (Parson) on Mar 16, 2002 at 05:38 UTC
    Didn't even think of doing it that way. One caveat is this won't work if $ENV{SERVER_PROTOCOL}is set.
    Below is from CGI.pm 2.752
    # Maybe future compatibility. Maybe not. my $protocol = $ENV{SERVER_PROTOCOL} || 'HTTP/1.0';


    -Lee

    "To be civilized is to deny one's nature."