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
fgolman  
#1 Posted : Tuesday, December 9, 2025 9:44:21 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 115
United States
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
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.