Script Packager Object Model Reference

IHttpResponse.SaveContent Method 

Save the response to the specified file

void SaveContent(
   string filePath
);

Parameters

filePath
The path, and possibly name, of the file to save to

Remarks

The specified file is overwritten if it already exists This method is useful to handle binary response data which is otherwise not supported by mrScriptBasic. If the Content-Disposition response header contains the file name and the filePath specifies an existing directory then file name in the response is automatically appended to the filePath parameter.

See Also

IHttpResponse Interface | Intelligence.FuncLibs.Http.HttpRequest Namespace