TFPCustomHTTPClient.HTTPMethod procedure
Executes an HTTP request with the specified method
Declaration
procedure HTTPMethod(const AMethod: string; const AURL: string;
Stream: TStream;
const AllowedResponseCodes: Array of Integer)
; virtualArguments
AMethod | The HTTP method to use (GET, POST, PUT, etc.) |
AURL | The URL to send the request to |
Stream | Stream to write the response content to |
AllowedResponseCodes | Array of HTTP status codes that are considered successful |
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
