[英]GitHub release asset download with node.js
我想使用API从GitHub版本中使用http.get方法在Node.js中编写一个自动下载器,并且出现302错误。 我能做什么?
HTTP 302不是错误:
找到的HTTP响应状态代码 302是执行URL重定向的常用方法。
您可以通过检索“ Location响应标头中显示的URL来处理“找到的HTTP 302”。
Location
除了使用http.get ,您可能还想考虑使用此答案中建议的request库 。 request应自动遵循重定向。
http.get
request
[英]How to download GitHub release asset from private repo using node
[英]Serve private GitHub release downloads through Node.js
[英]How to upload assets to a github release from node.js
[英]Download zip release from private repository with node.js
[英]Node.JS will not release localhost
[英]Github, node.js and grunt
[英]Node.js + github pages
[英]Download Throttle in node.js
[英]Node.js Download Manager
[英]Node.js: Download a tar.gz from Github and write to file
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.