HttpPostRequest - cHttpTransfer
Performs an HTTP POST request using sFilePath
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| sFilePath | String | Path to perform the HTTP POST |
| sData | String | String data to be posted |
| bDataIsFile | Integer | If false, the value of sData is sent as HTTP POST body. If true, sData is interpreted as a filename, and the contents of that file are sent as the POST body instead of the actual value of sData |
Syntax
Function HttpPostRequest String sFilePath String sData Integer bDataIsFile Returns Integer
Call Example
Get HttpPostRequest sFilePath sData bDataIsFile to IntegerVariable
Description
HttpPostRequest performs an HTTP POST request using sFilePath. If bDataIsFile is False, the value of sData is sent as HTTP POST body. If bDataIsFile is True, sData is interpreted as a filename, and the contents of that file are sent as the POST 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