Skip to content

HttpPutRequest - cHttpTransfer

Performs an HTTP PUT request using sFilePath

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sFilePath String Path to perform the HTTP PUT
sData String String data to be posted
bDataIsFile Integer If false, the value of sData is sent as HTTP PUT body. If true, sData is interpreted as a filename, and the contents of that file are sent as the PUT body instead of the actual value of sData.

Syntax

Function HttpPutRequest String sFilePath String sData Integer bDataIsFile Returns Integer

Call Example

Get HttpPutRequest sFilePath sData bDataIsFile to IntegerVariable

Description

HttpPutRequest performs an HTTP PUT request using sFilePath. If bDataIsFile is False, the value of sData is sent as HTTP PUT body. If bDataIsFile is True, sData is interpreted as a filename, and the contents of that file are sent as the PUT body instead of the actual value of sData. All headers previously added using AddHeader, if any, are also sent as part of the request.

The OnDataReceived event is triggered for any response sent by RemoteHost.

Return Value

Returns True if successful, and False otherwise