23 Mar 2023, 14:28

Hey there,

I own a RLC-520A. I'm testing these CGI commands: https://support.reolink.com/hc/en-us/article_attachments/15340090739353/Command.pdf
Anyway, I'm stuck at the login. I can't even get the token for a long session connection. I also tested the short session.

Here's an example:

When I run every command (from Windows), for example a very basic one like GetTime

curl -L -k -H 'Content-Type:application/json' -X POST -d '[{"cmd":"GetTime","action":"1"}]' "http://ip_address/api.cgi?cmd=GetTime&user=user&password=password"


I get this error:

<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>

Please also note that I need to add the -L parameter. Otherwise, I get:

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

I searched everywhere online and I can't figure it out what the issue here. Any help?