Topic Path: Symbol Reference > Classes > TIdCustomHTTP Class > TIdCustomHTTP Methods > Trace Method > Trace Method (string, TIdStream)
ContentsIndexHome
PreviousUpNext
TIdCustomHTTP.Trace Method (string, TIdStream)

Implements the HTTP TRACE command verb for diagnostics.

procedure Trace(
    AURL: string; 
    AResponseContent: TIdStream
); overload;
Parameters 
Description 
AURL 
Resource to be examined in Trace.
 
AResponseContent 
Destination for the test or diagnostic messages. 

Trace is an overloaded method in TIdHTTP that implements the HTTP TRACE command verb. Trace is used to a remote application-layer loop- back for the Request message, and allows the HTTP client to see the data received at the host or proxy server that is the target for the Request. Trace information is normally used for testing and diagnostic purposes. 

If the Request is valid, the Response to a Trace Request will contain the entire Request message with a Content-Type of "message/http". 

Trace is overloaded to allow the response content to be returned a String, using the function-based variant of the method, or in the stream specified in AResponseContent.

Exceptions 
Description 
EAssertionFailed 
Raised when the stream for the response content is unassigned. 

TIdCustomHTTP.Trace

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