psSaveAsFile - cBaseHTTPTransfer
Saves response from the remote host to the specified file instead of triggering the OnDataReceived event
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psSaveAsFile
| Access Type | Syntax |
|---|---|
| Read Access: | Get psSaveAsFile to StringVariable |
| Write Access: | Set psSaveAsFile to StringVariable/Value |
Description
Any response from the remote host will be saved to the specified file instead of triggering the OnDataReceived event. If blank, the OnDataReceived event is triggered instead.
This can be used to download/transfer files using cHTTPTransfer instead of cFTPTransfer.
Note that this property is not intended to be used in combination with cXmlHttpTransfer and cJsonHttpTransfer. These classes rely on OnDataReceived to receive the XML / JSON returned from the server.