Files
tldr/pages.zh/windows/curl.md

16 lines
599 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# curl
> 在 PowerShell 中,当原始的 `curl` 程序 (<https://curl.se>) 未正确安装时,此命令可能是 `Invoke-WebRequest` 的别名。
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest>。
- 查看原始 `curl` 命令的文档:
`tldr curl -p common`
- 查看 PowerShell 的 `Invoke-WebRequest` 命令的文档:
`tldr invoke-webrequest`
- 通过打印其版本号来检查 `curl` 是否已正确安装。如果此命令返回错误PowerShell 可能已用 `Invoke-WebRequest` 替换此命令:
`curl --version`