Web.HTTPApp.TWebResponse.SendRedirect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SendRedirect(const URI: string); virtual; abstract;

C++

virtual void __fastcall SendRedirect(const System::UnicodeString URI) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebResponse

Description

Provides the abstract (pure virtual) prototype of a method that sends the response with a StatusCode of 301 (Moved Permanently) and a Location of URI.

Call SendRedirect to redirect the web client request to another URI that is the proper target of the request. SendRedirect does the same thing as setting the StatusCode to 301, the Location to URI, and calling SendResponse.

See Also