1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-28 00:13:46 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/UseEncoding.txt
Vitaly the Alpaca (bot) 6862411398 Main build (Jenkins)
2025-12-11 16:26:56 +03:00

13 lines
346 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();