ALPV - [POST] /local/fflprapp/cloud.cgi #809
-
Hi Team, I am looking to for a way to configure an ALPV integration directly from my application via the post request.
https://www.axis.com/vapix-library/subjects/t10102231/section/t10165701/display It looks like this value needs to be encoded. Can you advise how I might be able to encode the url before sending it to the post request? The only information I could find regarding this is: Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @richardpurr , C# code for Base64 decoding:using System;
using System.Text;
class Program
{
static void Main()
{
// Original string to encode
string originalString = "http://10.0.5.223:5002";
// Encode the original string to Base64
byte[] originalBytes = Encoding.UTF8.GetBytes(originalString);
string encodedString = Convert.ToBase64String(originalBytes);
// Decode the Base64 string
byte[] decodedBytes = Convert.FromBase64String(encodedString);
string decodedString = Encoding.UTF8.GetString(decodedBytes);
// Output the results
Console.WriteLine("Original string: " + originalString);
Console.WriteLine("Encoded string: " + encodedString);
Console.WriteLine("Decoded string: " + decodedString);
// Check accuracy
if (originalString == decodedString)
{
Console.WriteLine("Success: The decoded string matches the original.");
}
else
{
Console.WriteLine("Error: The decoded string does not match the original.");
}
}
} Output:Reference: Get PUSH event configurations |
Beta Was this translation helpful? Give feedback.
Hi @richardpurr ,
Please use the following website for Base64 encoding and try: [BASE64
Decode and Encode]
C# code for Base64 decoding: