Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 115  Location: Chicago Thanks: 11 times Was thanked: 4 time(s) in 3 post(s)
|
I'm floundering around with the VB.net scripting required for a POST WebRequest (GET was easy as it is the default). Can anyone put some sample code out here to grab? Here was my script with the GET code (this is to cause another program to load an XML configuration file): Code:
dim intname as string = "testfile"
dim remotesystem as string = "http://127.0.0.1:9000"
dim remotecommand as string = "/api/state/load/" & intname & ".xml"
dim url as string = remotesystem & remotecommand
Dim myWebRequest As WebRequest = WebRequest.Create(url)
Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
As noted above, now I need to use the POST method going forward. Same data although the URL has a slightly different format for the new API: http://localhost:8080/api/v2/show/scenes/load?name=Example Thank you! Fritz Golman RadioDNA
|
|
|
|
|
|
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