1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-11 23:27:21 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SendPart.txt
Vitaly the Alpaca (bot) 5228b12d26 Main build (Jenkins)
2025-11-10 20:18:08 +03:00

16 lines
419 B
Plaintext
Vendored

URL = "https://bin.openintegrations.dev";
URL = URL + "/put";
ChunkSize = 524288;
Data = GetBinaryDataFromString("Some data for sending");
// Sending only "data for"
StartPosition = 5;
Bytes = 8;
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Data)
.SendPart(StartPosition, Bytes) // <---
.ReturnResponseAsJSONObject();