1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-23 21:29:38 +02:00
OpenIntegrations/docs/en/md/TCP/Tcp-client/Process-request.mdx

41 lines
959 B
Plaintext
Raw Normal View History

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"
```