1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SetHeaders.txt

14 lines
377 B
Plaintext
Raw Normal View History

2025-10-21 11:36:43 +03:00
 URL = "https://bin.openintegrations.dev";
2025-05-09 00:04:38 +03:00
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();