Simple Connect Test - Qlik-CLI

This commit is contained in:
Justin Donnelly
2022-01-31 11:47:05 -05:00
parent 4fdc3b8f50
commit dbf71636a0

6
qrs-api-headers.ps1 Normal file
View File

@@ -0,0 +1,6 @@
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("X-Qlik-User","UserDirectory=jprdonnelly;UserId=justin")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$url = "https://sense.browntown.local:4242/qrs/about?xrfkey=12345678qwertyui"
Invoke-RestMethod -Uri $url -Method Get -Headers $hdrs -Certificate $cert