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"
阅读 3233 · 发布于 2020-12-07
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
IDEA 快捷键之快速跳转到文件改动的地方阅读 1288
-
Alpine Linux 包管理器 apk 设置镜像地址阅读 522
-
Nginx 使用 X-Accel-Redirect 实现静态文件下载的统计、鉴权、防盗链、限速等阅读 6835
-
JMeter 多用户不同 Cookie 压测接口阅读 2176
-
设计模式之外观模式阅读 1498
-
Linux 常用命令之内存相关命令阅读 1770
-
Kubernetes Pod 控制器 CronJob阅读 560
-
MySQL 锁阅读 409
-
Android ScrollView 嵌套 ListView 问题阅读 1271
-
Golang 何时使用 new 和 make阅读 999