httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Error when issuing a 302 from a CGI
Date Fri, 28 Jul 2006 22:01:20 GMT
On Friday 28 July 2006 21:34, Joshua Slive wrote:

> > Rename the CGI script to nph-something -- this will tell mod_cgi to treat
> > the script as one with non-parseable headers (and subsequently leaves the
> > response code alone to do with as you wish).

Whilst feasible, that's fragile and requires more work than normal CGI.

> This advice will probably work, but the better advice is to replace
> the first line with
> Status: 302 Found


But you can simply omit it altogether, as it is implied by the CGI
Location header.

> CGI scripts don't emit the status line, but they can tell the server
> to send a particular status using the Status header.  See the CGI
> spec.

Exactly.  Don't confuse CGI "special" headers with HTTP headers.
And don't confuse the HTTP status code with a header.

Nick Kew

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message