Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 :-(



That 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/microsof...


It was at one point, but they took it out because it was stupid.


Well that's just plain stupid




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: