I have a simple script that runs from a shared folder on a server. When I run it from the same network where the server is, everything runs smooth, but when I'm not on the same network and I establish a VPN connection before running it, it returns an error message.
The script:
url = %1%
reservation = %2%
status = %3%
uid = %4%
ex_id = %5%
variables = {"id":"%reservation%", "status":"%status%", "uid":"%uid%",
"ex_id":"%ex_id%"}
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
WebRequest.Open("PUT", url, false)
WebRequest.setRequestHeader("Content-Type", "application/json")
WebRequest.Send(variables)
Return
The error is 0x80072726 - An invalid argument was supplied. Specifically: Send
WebRequest.Send(variables)
Error Image Any help would be greatly appreciated because I'm stuck here.
User contributions licensed under CC BY-SA 3.0