logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AnWa  
#1 Posted : Tuesday, July 30, 2024 3:20:47 PM(UTC)
AnWa

Rank: Newbie

Groups: Registered
Joined: 1/17/2021(UTC)
Posts: 2
Kazakhstan

Found an example of a simple web request:
Code:

Dim client = WebRequest.Create("http://192.168.1.10:8000/api/?Test=1")
Dim response = client.GetResponse()
response.Close

But how do we add basic authentication here?
Code:

dim authInfo as string= "admin:admin"
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
client.Headers["Authorization"] = "Basic " + authInfo;

Vmix complains about encoding
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.