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/SetHeaders.txt
Vitaly the Alpaca (bot) aa10e4c564 Main build (Jenkins)
2025-10-21 11:36:43 +03:00

14 lines
377 B
Plaintext
Vendored

URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Headers = New Map;
Headers.Insert("X-Header1", "Value1");
Headers.Insert("X-Header2", "Value2");
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.SetHeaders(Headers) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();