Skip to content

TFPCustomHTTPClient.HTTPMethod

Executes an HTTP request with the specified method

Declaration

Source position: fphttpclient.pp line 287

public 
procedure TFPCustomHTTPClient.HTTPMethod(const AMethod: string; 
                                        const AURL: string; 
                                        Stream: TStream; 
                                        const AllowedResponseCodes: Array of Integer)
                                        ;  virtual;

Description

Generic method for executing HTTP requests with any HTTP method. This is the core method used by all other HTTP method shortcuts (GET, POST, etc.).

Errors

May raise HTTP-related exceptions on connection errors or invalid responses.

See also

Name Description
Get Performs an HTTP GET request
Post Performs an HTTP POST request