1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-04-30 20:49:04 +02:00
Files
OpenIntegrations/docs/en/examples/HTTP/UseEncoding.txt
T

12 lines
342 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();