System.Net.HttpClient.Curl.SetTraceOutput

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetTraceOutput(AClient: TObject; AValue: Boolean);

C++

extern DELPHI_PACKAGE void __fastcall SetTraceOutput(System::TObject* AClient, bool AValue);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Net.HTTPClient.Curl.pas
System.Net.HTTPClient.Curl.hpp
System.Net.HttpClient.Curl System.Net.HttpClient.Curl

Description

Use SetTraceOutput to enable or disable the trace output for THttpClient and libcurl.

When AClient is not nil, it must be an instance of the THttpClient class (TCurlHTTPClient), and tracing is updated for the specified instance. When AClient is nil, then tracing is updated for all future THttpClient instances (TCurlHTTPClient).
When AValue is True, the output is enabled. The trace output is written into a file with a name provided by TPath.GetTempFileName.
One trace file with enabled trace output is created for each THttpClient instance (TCurlHTTPClient).

See Also