Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send an order to an IP power in VBS

Status
Not open for further replies.

Michastro

Programmer
Jun 8, 2023
2
0
0
FR
Hello,
I have an IP Power to command plus of AC via Ethernet. PFor example, to set plug n°2, I write with Firefox (or other):
Code:
[URL unfurl="true"]http://192.168.1.198/cmd.cgi?$A3[/URL] 2 1


I try to do the same thing with a VBS script:
Code:
Set HttpReq = CreateObject("MSXML2.XMLHTTP")
HttpReq.Open "PUT", "[URL unfurl="true"]http://192.168.1.198/cmd.cgi?$A3[/URL] 2 1"
HttpReq.send

It dosn't work, it doesn't crash too, but nothing.
Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top