Indy 9
TIdHTTPOnRedirectEvent
Unit: IdHTTP
Event type triggered for a HTTP redirection request.
TIdHTTPOnRedirectEvent = procedure (Sender: TObject; var dest: string; var NumRedirect: Integer; var Handled: boolean; var VMethod: TIdHTTPMethod) of object;
Unit
IdHTTP
Parameters
dest
URL for the new resource location.
Handled
Indicated that redirects should be handled.
NumRedirect
An accumulator for the number of redirection requests.
Sender
HTTP client to query for redirection.
Description
TIdHTTPOnRedirectEvent is a event type triggered when an HTTP client is notified of a redirection request from the HTTP server. TIdHTTPOnRedirectEvent is used in conjunction with an event handler to respond to the event.

Sender is the HTTP client that has received the redirection request.

Dest is the new location or URL for the resource. Dest is often used to update a GUI application with the current URL.

NumRedirects is a variable used to accumulate the number of redirection requests that the HTTP client has received.

Handled indicates that the event handler should respond to the redirection request. Set Handled to False if the application is unable to respond to the redirection request.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.