Sign in Join
FPDoc Onlineexperiment

TResponse.SendRedirect procedure

Member of TResponsepublicIn unit HTTPDefs

Sends a redirect response

Declaration

pascal
procedure SendRedirect(const TargetURL: string)

Arguments

TargetURL

Target URL for the redirect

Description

SendRedirect sends an HTTP redirect response to the client. This sets the appropriate status code and Location header to redirect the client to a new URL.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.