2024-12-15 21:26:24 +03:00
|
|
|
---
|
|
|
|
sidebar_position: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
# ProcessRequest
|
|
|
|
Sends a single request to a specified address and receives a response using the default settings
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-15 22:32:14 +03:00
|
|
|
`Function ProcessRequest(Val Address, Val Data = "", Val ResponseString = True, Val LineBreak = True) Export`
|
2024-12-15 21:26:24 +03:00
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|
|
|-|-|-|-|-|
|
|
|
|
| Address | --address | String | ✔ | Address and port |
|
|
|
|
| Data | --data | String, BinaryData | ✖ | Data or text to be sent |
|
|
|
|
| ResponseString | --string | Boolean | ✖ | An attribute of receiving the response as a string |
|
2024-12-15 22:32:14 +03:00
|
|
|
| LineBreak | --nl | Boolean | ✖ | End the message with a line break character |
|
2024-12-15 21:26:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
Returns: BinaryData, String - Response
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
Parameters with Binary data type can also accept file paths on disk and URLs
|
|
|
|
:::
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|