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

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

问题描述

使用来自

的torrent文件

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

code>

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



<然后,我向跟踪器发出请求。像

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

但是我得到了


d14:failure reason63 :请求下载不授权使用此跟踪器.e


根据规范,这应该有效吗?



Tracker Spec
一般规格

解决方案

十六进制中的info_hash,而不是URL编码。应该直接对SHA-1散列的字节进行编码,如下所示:

  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,还有一些其他参数,如<$ c $通常需要c> peer_id


Using a torrent file from

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

But i get

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

According to the spec this should work?

Tracker Spec General Spec

解决方案

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

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

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

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