1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SetStringBody.txt
Vitaly the Alpaca (bot) aa10e4c564 Main build (Jenkins)
2025-10-21 11:36:43 +03:00

13 lines
345 B
Plaintext
Vendored

URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Text = "Hello world!";
Encoding = "Windows-1251";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.UseEncoding(Encoding)
.SetStringBody(Text) // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();