Hello people.

I'm struggling with something here, and maybe any of you can help me.

I'm trying to build a Ruby script that request information from torrent
trackers. For example, the list of torrents that a tracker have (I'm not
sure if this is possible). Or the number of seeds and and peers a
torrent have 'in that' tracker (this one is possible for sure).

My problem actually is not really with Ruby (yet?).
I was reading the information about BitTorrent Tracker Protocol
(available here: http://wiki.theory.org/BitTorrent_Tracker_Protocol) and
there they say that we can request the information for torrent X like
this:

http://some.tracker.com:999/announce?info_hash=X_hashcode

I know that most of the times not all the trackers, that a torrent have,
work because they might be down.
So I downloaded a torrent file and I went to this page:

http://torrenteditor.com/

And I check the hashcode and trackers that were working, so I can try to
get the information from a working tracker for the torrent I downloaded.

so, after I get the list of working trackers, I just build a url like
this:

http://tracker.publicbt.com/announce?info_hash=260F8DE4BFC7FB5B2565F79D
B303A61F664F0BBD

and I pasted in my web browser and try to reach it. But I always have a
'Invalid request'. I tried to all of the working trackers and I always
have the same result.

Any of you have any idea of what I'm doing wrong? I can use the browser
to test that, since is just a simple http request, right?

Thanks,

Luis

-- 
Posted via http://www.ruby-forum.com/.