Bittorrent 跟踪器请求 [英] Bittorrent tracker request

查看:28
本文介绍了Bittorrent 跟踪器请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用来自

http://torrent.ubuntu.com:6969/

我正在计算与页面上的哈希匹配的哈希.

I am calculating its hash which matches with the hash on the page.

然后我向跟踪器发出请求.喜欢

Then i make a request to the tracker. Like

http://torrent.ubuntu.com:6969/announce?info_hash=9a81333c1b16e4a83c10f3052c1590aadf5e2e20

但是我明白了

d14:failure reason63:Requested download is not Authorized for use with this tracker.e

d14:failure reason63:Requested download is not authorized for use with this tracker.e

根据规范,这应该可行吗?

According to the spec this should work?

跟踪器规范一般规范

推荐答案

您指定了十六进制的 info_hash,而不是 URL 编码.SHA-1 散列的字节应直接编码,如下所示:

You specified the info_hash in hex, rather than URL-encoding. The bytes of the SHA-1 hash should be encoded directly, like this:

http://torrent.ubuntu.com:6969/file?info_hash=%9A%813%3C%1B%16%E4%A8%3C%10%F3%05%2C%15%90%AA%DF%5E.%20

此外,对于announce URL,通常需要一些附加参数,例如peer_id.

Also, for the announce URL, some additional parameters like peer_id are usually required.

这篇关于Bittorrent 跟踪器请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆