Comments (6)
n.prototype.formatCookies = function () { var e = []; for (var t in this.cookies) e.push(t + "=" + this.cookies[t]); return e.join("; ")
https://github.com/acgotaku/115/blob/44c965a75e4bffbbfd9293419b0b4d413ff3f318/release/js/home.js#L1
这里有JS实现方法,可以参考
from elevengo.
FileGet
的问题已经在 develop 分支修复。
下载所需的所有 Cookie, 都已拼成请求头,放在 DownloadTicket.Headers
中了:https://github.com/deadblue/elevengo/blob/develop/download.go#L75-L87
在使用第三方工具下载的时候,直接用 Headers 中的内容即可:
"https://webapi.115.com/files/download" 会返回一个针对下载路径的特殊 cookie,不过 "https://proapi.115.com/app/chrome/downurl" 并不返回:
from elevengo.
{"status":403,"message":"invalid signature","request_id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
我查看每次调用的cookie都是登陆的cookie 这与aria2推送的特殊coookie并不相符,我使用给定的cookie返回的就是这个。我还是认为 下载的cookie 不是登陆的cookie 应该还是需要特殊的cookie
from elevengo.
http://proapi.115.com/app/chrome/downurl
中有返回的 特殊cookie,我看看能不能修改下!!!
from elevengo.
使用第三方下载工具时,要把 DownloadTicket.Headers
中的所有请求头都传给第三方工具。
目前必要请求头有两个,分别是 “Cookie” 和 “User-Agent”,如果没有用DownloadTicket
中给出的 "User-Agent" ,就会出现“invalid signature”错误。
使用 aria2c JSON-RPC 的时候,可参考如下实现:
from elevengo.
是我虚妄了。原来签名验证还包含这些。谢谢指点
from elevengo.
Related Issues (10)
- 大佬,你好我找了一下没有找到支持秒传。请问下有打算支持吗? HOT 3
- 函数调用 出现错误 (a *Agent) FileStat 每次只能返回一个null HOT 6
- sha1文件导入提示错误 HOT 4
- 請問大佬是否會python 我已經把加密部分完成一些了 只差在POST 發送的問題 HOT 5
- 我还是直接发错误吧! HOT 12
- 【bug】Agent.FileIterate 无法获取完整的文件,会获取重复文件。 HOT 1
- 烦请问有无支持提供 HTTP API 的意向 HOT 2
- .FileSearch(dirId, keyword) 返回空集 HOT 1
- 大佬,辛苦了。昨天我测试妙传使用GitHub 开发者分支,出现签名错误。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elevengo.