1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-04-28 20:46:05 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/AddHeader.txt
T
Vitaly the Alpaca (bot) 9250f35cd3 Main build (Jenkins)
2025-06-27 11:47:43 +03:00

11 lines
326 B
Plaintext
Vendored

URL = FunctionParameters["HTTP_URL"];
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddHeader("X-Header1", "Value1") // <---
.AddHeader("X-Header2", "Value2") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();