Skip to main content
Table of Contents

TTMSMCPHTTPServerResponse.Redirect Method

Answers with a redirect to another address.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerResponse

Syntax

TMS.MCP.HTTPServer.hppPascalC++
procedure Redirect(const AURL: string); virtual; abstract;
virtual void __fastcall Redirect(const System::UnicodeString AURL) = 0;

Remarks

Implemented by the platform's own server. It sets the status and the location header, so there is no need to set them as well.

Parameters

Name Description
AURL Address to send the client to.