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) 805a6881c8 Main build (Jenkins)
2025-05-09 21:49:23 +03:00

14 lines
364 B
Plaintext
Vendored

URL = "https://httpbin.org";
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();