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

TFPCustomHTTPClient.Put

Performs an HTTP PUT request

Declaration

Source position: fphttpclient.pp line 304

public procedure TFPCustomHTTPClient.Put(

  const URL: string;

  const Response: TStream

);

procedure TFPCustomHTTPClient.Put(

  const URL: string;

  Response: TStrings

);

procedure TFPCustomHTTPClient.Put(

  const URL: string;

  const LocalFileName: string

);

function TFPCustomHTTPClient.Put(

  const URL: string

):RawByteString;

Arguments

URL

  

The URL to send the PUT request to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to send the PUT request to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to send the PUT request to

LocalFileName

  

Local filename to save the response to

Arguments

URL

  

The URL to send the PUT request to

Function result

The response content as string

Description

Performs an HTTP PUT request to upload or update data at the specified URL. The request body is taken from the RequestBody property.

Errors

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

See also

Post

  

Performs an HTTP POST request

Patch

  

Performs an HTTP PATCH request


Documentation generated on: Jan 27 2026