RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCGIResponse.SendRedirect Method

Sends the response with a StatusCode of 301 (Moved Permanently) and a Location of URI.

Pascal
procedure SendRedirect(const URI: AnsiString); override;
C++
virtual __fastcall SendRedirect(const AnsiString 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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!