8 ms·
I think PowerShell is a bit scary, for example I could never get curl to work in it, say a simple POST command: curl -X "POST" google.com should return Error 41
by DrTung 2y ago
I think PowerShell is a bit scary, for example I could never get curl to work in it, say a simple POST command:
curl -X "POST" google.com
should return Error 411 (Length required) from google (as it does in CMD.EXE)
When I try it in PowerShell I get:
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'.
and some more error messages
even curl -X "GET" doesn't work :-(
- skowalak 2y agoThat is because `curl` is an alias for the builtin Invoke-WebRequest and not the actual curl program. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.4 https://learn.microsoft.com/en-us/powershell/module/microsof...
- martinsnow 2y agoWell that's just plain stupid
- gabrielsroka 2y agoIt was at one point, but they took it out because it was stupid.