Trying to run command line curl requests on Windows using script task

Hi there,

I’m trying to run a couple of curl requests on a Windows server. It runs fine from the dos command line on the server but struggling to run it as part of the process.

It’s set to use the run script command and initially tried it as powershell but it doesn’t like it because of the powershell alias for the curl command.

Any ideas on how I can trigger a series of the following requests:
curl -X PATCH “http://172.28.36.62:8080/api/3/http/upstreams/my-api/servers/5” -H “accept: application/json” -H “Content-Type: application/json” -d “{“down”: false}”
curl -X PATCH “http://172.28.36.62:8080/api/3/http/upstreams/my-api/servers/6” -H “accept: application/json” -H “Content-Type: application/json” -d “{“down”: false}”

Server is running Windows 2012 server

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.