Topic Path: Symbol Reference > Classes > TIdCustomHTTP Class > TIdCustomHTTP Methods > Put Method > Put Method (string, TIdStream, TIdStream)
ContentsIndexHome
PreviousUpNext
TIdCustomHTTP.Put Method (string, TIdStream, TIdStream)

Implements the HTTP PUT command verb.

procedure Put(
    AURL: string; 
    ASource: TIdStream; 
    AResponseContent: TIdStream
); overload;
Parameters 
Description 
AURL 
Location to store the resource on the server.
 
ASource 
Values tyo be stored at the specified location.
 
AResponseContent 
Destination for response values from the operation. 

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. 

Post calls the protected method used to perform the HTTP transfer. 

Exceptions 
Description 
EAssertionFailed 
Raised when one of the streams in ASource or AResponseContent is unassigned. 

TIdCustomHTTP.Put

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.