Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.SimplePut procedure

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Static method to perform a simple HTTP PUT request

Declaration

pascal
class procedure SimplePut(const URL: string; const Response: TStream)
class procedure SimplePut(const URL: string; Response: TStrings)
class procedure SimplePut(const URL: string; 
 const LocalFileName: string)
class function SimplePut(const URL: string): RawByteString

Arguments

URL

The URL to send the PUT request to

Response

Variable to store the response content as string

LocalFileName

Local filename to save the response to

Function result

The response content as string

Description

Static utility method for performing a simple HTTP PUT request without requiring an HTTP client instance.

Errors

May raise HTTP-related exceptions on connection errors.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.