Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTP.Put
Implements the HTTP PUT command verb.

function Put(AURL: string; const ASource: TStream): String; overload;
procedure Put(AURL: string; const ASource: TStream; const AResponseContent: TStream); overload;
Parameters
AURL: string
Location to store the resource on the server.

const ASource: TStream
Values tyo be stored at the specified location.

const AResponseContent: TStream
Destination for response values from the operation.

Description
Put is an overloaded method in TIdHTTP, that implements the HTTP PUT command verb used to store the entity contained in ASource at the URI specified in AURL.

If AURL refers to an existing server resource, the values in ASource are considered to be a modified version of the server resource. When AURL does not exist on the server, a new server resource is created for the values in ASource.

Put is overloaded to provide a String function that returns the Response from the HTTP Request, or a procedure that stores Response values in the stream specified by AResponseContent.

Put differs from Post through its use of the values in AURL. For a Put operation, the valuein AURL always refers to the values included in the Response content.

Put calls DoRequest to perform the HTTP transfer.