Re: [users@httpd] Error when issuing a 302 from a CGI

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

 



On 7/28/06, Eike Frost <ei@xxxxxxxx> wrote:
Hi,

On Friday 28 July 2006 21:42, Jose Adriano Baltieri wrote:
> I have a tiny CGI program written in C that's like this :
(...)
> HTTP/1.1 302 Found
> Location: http://www.unimep.br
>
> However, when I run it from the browser I'll receive an "Internal Server
> Error".

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).

This advice will probably work, but the better advice is to replace
the first line with
Status: 302 Found
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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux