lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev problems with redirection


From: David Woolley
Subject: Re: lynx-dev problems with redirection
Date: Tue, 22 Apr 2003 07:26:15 +0100 (BST)

> echo "Location: http://www.yahoo.com";

This should be:

> echo "Location: http://www.yahoo.com/";

although that probably isn't the problem.

> other way to make automatic redirections from a cgi which are supoprted by
> lynx?

Redirecting with:

Status: 302     (or other appropriate 30x values)
Location: <well-formed-absolute-URL>

is the only legitimate way of redirecting from a CGI script for any
browser.  Status: 302 should be implied by the use of Location.

Note that 302 is normally only suitable when the CGI was accessed using
a GET request.  There is a different status code if you want to redirect
to a GET from a POST.

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]