JSON request always redirected to html login

MBenstead

n3wb
Mar 10, 2025
3
0
UK
Hi All,

I am trying to access BI via simple JSON requests but the response is never json, always html - the login page.

BI version is 5.9.5.4 x64 on windows 11 Pro

On the machine running BI I have tried : (via chrome and edge)
I always get the login page for the webserver.

I have checked in the Users->Privileges for the user and Administrator is ticked.
Also tried unticking Web Server->Advanced->Use secure session keys and login page

On another installation on a different site and also get the same problem, never a JSON reply.
I am no doubt missing something very basic, anyone point me in the right direction?

Mike
 
What is it you are attempting to do, is the intent to try to bypass the login screen, if so for what purpose?
 
You cannot issue JSON calls to Blue Iris via an internet browser.

Inspect and try the attached Powershell script to learn how to use the Blue Iris JSON interface.
  1. Extract the .ps1 file from the attached zip file to your desktop, or scripts folder.
  2. Be sure that the folder used is in your PC's environment PATH.
NOTE: If you've never used PowerShell on your Blue Iris PC, you may first to need to change its default security policy.
Open PowerShell in Administrator mode, and type the following, then hit the Enter key: Set-ExecutionPolicy RemoteSigned
(click here for a nice beginner's tutorial to using PowerShell).


From the console, test the script like this:
bi_json_call_basic.ps1 -address "192.168.1.3:81" -user "admin" -pw "adminpassword"

The output should like this screenshot:
V1_output.png

Another code example using PHP can be found here.
 

Attachments

Last edited:
  • Like
Reactions: Bruce_H