1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/UseEncoding.txt

13 lines
341 B
Plaintext
Raw Normal View History

2025-06-27 11:47:43 +03:00
 URL = FunctionParameters["HTTP_URL"];
2025-05-04 21:43:56 +03:00
URL = URL + "/post";
Text = "Hello world!";
Encoding = "Windows-1251";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.UseEncoding(Encoding) // <---
.SetStringBody(Text)
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();