Skip to content

TFPHTTPClient

Full-featured HTTP client with published properties

Declaration

Source position: fphttpclient.pp line 481

type

  TFPHTTPClient = class(TFPCustomHTTPClient)
  public
    property ResponseCookies;
  published
    property KeepConnection;
    property Connected;
    property IOTimeout;
    property ConnectTimeout;
    property RequestCookies;
    property RequestHeaders;
    property RequestBody;
    property ResponseHeaders;
    property HTTPversion;
    property ServerHTTPVersion;
    property ResponseStatusCode;
    property ResponseStatusText;
    property Cookies;
    property AllowRedirect;
    property MaxRedirects;
    property OnRedirect;
    property UserName;
    property Password;
    property OnPassword;
    property OnDataReceived;
    property OnDataSent;
    property OnHeaders;
    property OnGetSocketHandler;
    property Proxy;
    property VerifySSLCertificate;
    property CertCAFileName;
    property TrustedCertsDir;
    property AfterSocketHandlerCreate;
    property OnVerifySSLCertificate;
    property OnEventStream;
    property MaxHeaderLineLength;
    property MaxHeaderCount;
    property MaxResponseSize;
  end;

Description

TFPHTTPClient is the complete HTTP client implementation that publishes all properties from TFPCustomHTTPClient. This class is intended for use in visual design environments and provides access to all HTTP client functionality through published properties.

Properties

Member Visibility Description
AfterSocketHandlerCreate read only published Event called after socket handler creation
AllowRedirect read only published Whether to automatically follow HTTP redirects
CertCAFileName read only published Path to Certificate Authority file for SSL verification
Connected read only published Indicates whether a connection is currently active
ConnectTimeout read only published Timeout for connection establishment in milliseconds
Cookies read only published Cookie jar for automatic cookie management
HTTPversion read only published The HTTP protocol version to use for requests
IOTimeout read only published Timeout for data transfer operations in milliseconds
KeepConnection read only published Whether to keep the connection alive between requests
MaxHeaderCount read only published
MaxHeaderLineLength read only published
MaxRedirects read only published Maximum number of redirects to follow automatically
MaxResponseSize read only published
Password read only published Password for HTTP authentication
Proxy read only published Proxy server configuration
RequestBody read only published The request body content for POST/PUT requests
RequestCookies read only published Cookies to send with requests
RequestHeaders read only published HTTP headers to send with requests
ResponseCookies read only public Cookies received from the server in the last response
ResponseHeaders read only published HTTP headers received from server responses
ResponseStatusCode read only published HTTP status code from the last response
ResponseStatusText read only published HTTP status text from the last response
ServerHTTPVersion read only published The HTTP protocol version used by the server in the last response
TrustedCertsDir read only published Directory containing trusted certificate files
UserName read only published Username for HTTP authentication
VerifySSLCertificate read only published Whether to verify SSL certificates
See all Properties

Events

Member Visibility Description
OnDataReceived read only published Event called during data reception to track progress
OnDataSent read only published Event called during data transmission to track progress
OnEventStream read only published Event called when a Server-Sent Events stream is established
OnGetSocketHandler read only published Event called to provide custom socket handlers
OnHeaders read only published Event called when response headers are received
OnPassword read only published Event called when authentication is required
OnRedirect read only published Event called when a redirect is encountered
OnVerifySSLCertificate read only published Event called for custom SSL certificate verification
See all Events

See also

Name Description
TFPCustomHTTPClient Base HTTP client class for making HTTP requests