Hacker News new | ask | show | jobs
by rdtsc 181 days ago
Curl here is used generically, as in “client for url”? This is not cURL (https://en.wikipedia.org/wiki/CURL). I found it a bit confusing. My first thought was “I sure don’t remember curl running JavaScript from pages it fetches”.
3 comments

Everybody say "thank you, Microsoft!". Until PowerShell 6, curl in pwsh was an alias to Invoke-WebRequest: https://lazyadmin.nl/powershell/using-curl/

Obviously, it does not cause any confusion at all because all the Windows admins always install the latest and greatest versions of Powershell into the environments they administer.

Oh wow. I had no idea. I bet Daniel had a lot of fun fielding "curl is broken on Windows" issues.
I wanted to make a more descriptive title, mentioning that Microsoft uses its own program for `curl` command, but ran out of characters.
Older versions of Powershell have it as an alias for Invoke-WebRequest. (Which also overrides using the actual cURL program if you don't put .exe)