Executes an HTTP request with the specified method
Source position: fphttpclient.pp line 275
public procedure TFPCustomHTTPClient.HTTPMethod( |
const AMethod: string; |
const AURL: string; |
Stream: TStream; |
const AllowedResponseCodes: array of Integer |
); virtual; |
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 |
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.).
May raise HTTP-related exceptions on connection errors or invalid responses.
|
Performs an HTTP GET request |
|
|
Performs an HTTP POST request |