Internet Direct (Indy) Version 9.0.1 Beta
TIdHTTPResponseInfo.Redirect
Updates the location for an HTTP response.

procedure Redirect(const AURL: string);
Parameters
const AURL: string
Location of the redirected resource.

Description
Redirect is a procedure that allows TIdHTTPResponseInfo to redirect the HTTP client to specific URL. Redirect sets ResponseNo to 302, the HTTP response code that indicates a temporary redirection has been performed. To indicate that a resource has been permanently moved, set ResponseNo to 301.

Redirect also updates the "Location" Header for the HTTP response to contain the value specified in AURL.