How to Use curl in Windows PowerShell? Need Help Getting Started! or Why Isn't curl Working in Window

14 Replies, 1421 Views

The struggle is real! curl windows powershell is a nightmare because of the alias clash.

Quick fix: Disable the alias with:
```
Remove-Item alias:curl
```

Now `curl` will call the real curl.exe if it’s in your PATH. Otherwise, download it from [here](https://curl.se/windows/).

Also, `-UseBasicParsing` in Invoke-WebRequest can help if you’re getting HTML parsing errors.

Messages In This Thread



Users browsing this thread: 1 Guest(s)