4 Replies Latest reply: Jan 30, 2018 5:03 PM by Amien Amien RSS

    Why do i keep getting the login page with this API call in PS?

    Amien Amien

      $req = New-Object System.Net.WebClient

      $req.Method = "GET";

      $req.UserAgent = "Windows";

      $req.Accept = "application/json";

      $req.Credentials = [System.Net.CredentialCache]::DefaultCredentials;

      $req.Headers.Add("X-Qlik-xrfkey", "ABCDEFG123456789");

      $req.DownloadString("https://url:12345/qrs/about?xrfkey=ABCDEFG123456789");


      anyone can help with? what i'm missing?