You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
12
docs/en/examples/HTTPClient/UseEncoding.txt
vendored
Normal file
12
docs/en/examples/HTTPClient/UseEncoding.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
Text = "Hello world!";
|
||||
Encoding = "Windows-1251";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.UseEncoding(Encoding) // <---
|
||||
.SetStringBody(Text)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsJSONObject();
|
||||
Reference in New Issue
Block a user