Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPCustomHTTPClient.HTTPMethod

Executes an HTTP request with the specified method

Declaration

Source position: fphttpclient.pp line 275

public procedure TFPCustomHTTPClient.HTTPMethod(

  const AMethod: string;

  const AURL: string;

  Stream: TStream;

  const AllowedResponseCodes: array of Integer

); virtual;

Arguments

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

Get

  

Performs an HTTP GET request

Post

  

Performs an HTTP POST request


Documentation generated on: Jan 27 2026