What are the Powershell options for the curl included in Windows Server 2016?

0

I was just able to successfully download a file using the curl included in win server 2016 with the commandline:
curl URL -o file.mp4
But commands like curl -V and curl --help fail.
Are these the wrong parameters for curl within Powershell?
If so what is the correct commandline for curl --help within Powershell.

Note: I don't have access to CMD.

Derp

Posted 2019-03-24T20:32:20.510

Reputation: 11

The command curl, as is wget, is an alias to invoke-webrequest. If you run: powershell alias curl you can see the mapping. Running: help Invoke-WebRequest will show the help and confirm the alias entries as well. – HelpingHand – 2019-03-24T22:14:51.647

Answers

0

If your version of Windows includes the actual curl binary (as versus the alias that PowerShell has by default), you'll find it in C:\Windows\system32\curl.EXE . It may be at a slightly different path depending upon your Windows, "which curl" typed into a Powershell window will return the exact path. Otherwise you are out of luck.

eric.green

Posted 2019-03-24T20:32:20.510

Reputation: 101