Topic Path: Symbol Reference > Classes > TIdHTTPServer Class > TIdHTTPServer Properties > OnCommandGet Event
ContentsIndexHome
PreviousUpNext
TIdHTTPServer.OnCommandGet Event

Event handler signalled for HTTP server GET, POST, and HEAD requests.

property OnCommandGet;
Parameters 
Description 
AContext 
The client session generating the event.
 
RequestInfo 
The request object reference.
 
ResponseInfo 
The response object reference. 

OnCommandGet is the TIdHTTPGetEvent event handler used to respond to events generated for the HTTP server GET, POST, and HEAD commands. OnCommandGet is published in TIdHTTPServer, and is used during execution of the client thread to form an HTTP response to the HTTP request from the client connection. 

The server implementation may assign a procedure to the OnCommandGet event handler to allow the server to respond to the HTTP commands. Note: When OnCommandGet is unassigned, the HTTP request will be read from the client connection and an HTTP prototcol error will be sent in the HTTP reponse. 

OnCommandGet can be used to manipulate properties and methods of the RequestInfo and ResponseInfo parameters prior to allowing the server to send the response to the HTTP client.

TIdHTTPGetEvent 

TIdHTTPRequestInfo 

TIdHTTPResponseInfo 

TIdRFCReply

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.