PowerShell 使用 wget 只输出信息不下载问题
PowerShell wget Windows 大约 1180 字问题
直接使用wget
拼接一个url
地址,将会在控制台得到HTTP
信息,而不是完整的文件。
PS C:\Users\fendoudebb\Desktop> wget https://unpkg.com/element-ui/lib/theme-chalk/index.css
StatusCode : 200
StatusDescription : OK
Content : @charset "UTF-8";.el-pagination--small .arrow.disabled,.el-table .hidden-columns,.el-table td.is-hidden>*,.el-table th.is-hidden>*,.el-table--hidden{visibility:hidden}.el-input__suffix,.el-tree.is-dra...
RawContent : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
X-Cloud-Trace-Context: 2508d4b572bce42f2bfab5db530d46da
Age: 583615
CF-Cac...
Forms : {}
Headers : {[Transfer-Encoding, chunked], [Connection, keep-alive], [Vary, Accept-Encoding], [Access-Control-Allow-Origin, *]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 232432
解决
添加-OutFile
属性指定保存的文件名。
wget https://unpkg.com/element-ui/lib/theme-chalk/index.css -OutFile "index.css"
阅读 2402 · 发布于 2020-12-07
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Kubernetes Label 相关命令阅读 184
-
软考-系统架构设计师:信息与信息化的概念阅读 717
-
Windows 子系统 WslRegisterDistribution failed with error: 0x80370102阅读 88
-
Linux 中使用 curl 代替 telnet 测试端口是否连通阅读 8524
-
javac 错误: 编码 GBK 的不可映射字符阅读 632
-
Android 调节手机亮度阅读 3034
-
Spring Boot 中的 ApplicationRunner 和 CommandLineRunner阅读 2003
-
AWS 更换 SSH 登陆密钥对阅读 861
-
Android 取消 EditText 下划线阅读 3194
-
Golang 设置镜像阅读 1482