Question HttpWebRequest

jc30120

New member
Joined
Dec 1, 2022
Messages
4
Programming Experience
Beginner
I am new to Vb.Net although have fair experience with VB6. I am wanting to control a small web driven relay device from a Windows form program. I can control it with Curl commands but I need to translate this over to Vb.Net to get the responses.

The Curl commands are :
curl --digest -u admin:1234 http://192.168.1.101/restapi/meter/values/voltage.0/value/ which returns a number and
curl --digest -u admin:1234 -X PUT -d value=true http://192.168.1.101/restapi/relay/outlets/0/state/ which sets the relay with no return
this should be simple to translate to Vb.Net but is beyond me at present.

Thanks in advance
 
Back
Top