how submit curl request on windows powershell

Viewed 27

I have a curl command that looks like the following

curl --cert "/C/tmp/keys/dev.crt" --key "/C/tmp/keys/dev.key" --cacert "/C/tmp/keys/root.crt" -X GET "https://urlofserver"

This works fine on a shell command. Now I need to submit the same using a powershell script. From what I researched I know you can use Invoke-WebRequest but not sure exactly how to pass these parameters. Would appreciate some help on this.

0 Answers
Related