Set response file
Sets the file path to save the query result
Function SetResponseFile(Val Value) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Value | --filepath | String | ✔ | File path |
Returns: DataProcessorObject.OPI_HTTPClient - This processor object
1C:Enterprise/OneScript code example
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
TFN = GetTempFileName();
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetResponseFile(TFN) // <---
.ProcessRequest("GET")
.ReturnResponseFilename();
Result
"/tmp/cktv4t3r.pkw"