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

13 lines
346 B
Plaintext
Raw Normal View History

2025-10-21 11:36:43 +03:00
 URL = "https://bin.openintegrations.dev";
2025-05-04 21:43:56 +03:00
URL = URL + "/post";
2025-12-11 16:26:56 +03:00
Text = "Hello world!!";
2025-05-04 21:43:56 +03:00
Encoding = "Windows-1251";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.UseEncoding(Encoding) // <---
.SetStringBody(Text)
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();