Reads the response body and writes it to a file.
Input Arguments
Name
Type
Mandatory
Description
Path
String
No
The path to the output file. If not specified, a temporary file will be created and its path returned.
AutoDelete
Boolean
A boolean value that indicates whether the file will be deleted automatically when the request object goes out of scope. The default value is False.
Output Arguments
ContentInfo
XPRIM_HttpContentInfo
Describes the properties of the response content.
Status
XPRIM_HttpResponseReadContentStatus
Indicates whether the response body was read successfully.
Return Value
The full path to the file containing the response body.
If a path is specified as an input parameter, the same path will be returned. If no path is specified, a path to a temporary file will be returned.