本文介绍了如何将torrent信息散列转换为scrape?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自磁铁链接的洪流散列。例如:fda164e7af470f83ea699a529845a9353cc26576
当我尝试获取关于leechers和同伴的信息时,我应该请求: ???
我应该如何为这个请求转换信息散列?它是网址编码还是becoding?怎么样?在PHP中。

I have a torrent hash from the magnet link. For example: fda164e7af470f83ea699a529845a9353cc26576When I try to get information about leechers and peers I should request: http://tracker.publicbt.com/scrape?info_hash=???How should I convert info hash for this request? Is it url encoding or becoding? how? In PHP.

推荐答案

这是一个原始的十六进制表示。使用 pack() H 来转换它。然后URL编码它。

It's a raw hexadecimal representation. Use pack() with H to convert it. Then URL encode it.

这篇关于如何将torrent信息散列转换为scrape?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:30
查看更多