Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPResponseInfo.Redirect Method

Updates the location for an HTTP response.

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

Redirect is a procedure that allows the HTTP response to redirect the HTTP client to specific URL. 

Redirect sets the value for the HTTP response in 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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.