1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-20 09:19:27 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/AddHeader.txt
T

11 lines
326 B
Plaintext
Raw Normal View History

2025-06-27 11:47:43 +03:00
URL = FunctionParameters["HTTP_URL"];
2025-05-09 00:04:38 +03:00
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddHeader("X-Header1", "Value1") // <---
.AddHeader("X-Header2", "Value2") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();