You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| public | 3 years ago | |
| README.md | 3 years ago | |
| api.js | 3 years ago | |
| package-lock.json | 3 years ago | |
| package.json | 3 years ago | |
README.md
10: A Simple JSON API
You'll need to download curl for windows from curl.se if you're on
windows. The only problem is PowerShell comes with a fairly lame curl that's an alias for
Invoke-WebRequest. You can just type curl.exe and that'll use the real curl. You can also or run this command:
remove-item alias:curl
After that you should be able to run curl like normal with just:
curl
curl: try 'curl --help' or 'curl --manual' for more information
The only problem is you'll have to do this every time you start PowerShell. Making this permanent
is...complicated. Just type curl.exe instead.