Skip to content

TFPCustomHTTPClient.Put

Performs an HTTP PUT request

Declaration

Source position: fphttpclient.pp line 316

public 
procedure Put(const URL: string; const Response: TStream);

procedure Put(const URL: string; Response: TStrings);

procedure Put(const URL: string; const LocalFileName: string);

function Put(const URL: string) : RawByteString;

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

Name Description
Post Performs an HTTP POST request
Patch Performs an HTTP PATCH request