vMix Forums
»
General
»
General Discussion
»
WebRequest with basic authentication
Rank: Newbie
Groups: Registered
Joined: 1/17/2021(UTC) Posts: 2
|
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
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
WebRequest with basic authentication
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close