1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-06 21:04:14 +02:00
Files
OpenIntegrations/docs/en/examples/ClickHouse/GetHTTPConnectionSettings.txt
T
Vitaly the Alpaca (bot) c25ed70ac3 Main build (Jenkins)
2026-02-13 14:09:07 +03:00

26 lines
719 B
Plaintext
Vendored

URL = "http://localhost:8123";
// No authorization
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL);
// With basic authorization
Login = "bayselonarrend";
Password = "12we...";
Authorization = New Structure(Login, Password);
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, Authorization);
// With JWT authorization
JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.test";
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, JWT);
// With additional headers
AdditionalHeaders = New Map;
AdditionalHeaders.Insert("X-Custom-Header", "CustomValue");
Result = OPI_ClickHouse.GetHTTPConnectionSettings(URL, Authorization, AdditionalHeaders);